How to Run Linux/Bash on Windows 10 Using the Built-In Windows Subsystem for Linux

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • In this video, we will be learning how to run Linux on Windows using the new Windows Subsystem for Linux that comes with Windows 10. This is an excellent way to run Bash on a Windows machine. It allows you to use all of the Bash commands we are used to using on Linux within a Windows system. We will be showing how to enable and install Linux on Windows and also go over a quick overview to see how this works. Let's get started...
    Customizing Your Terminal: • Customizing Your Termi...
    ✅ Support My Channel Through Patreon:
    / coreyms
    ✅ Become a Channel Member:
    / @coreyms
    ✅ One-Time Contribution Through PayPal:
    goo.gl/649HFY
    ✅ Cryptocurrency Donations:
    Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
    Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
    Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
    ✅ Corey's Public Amazon Wishlist
    a.co/inIyro1
    ✅ Equipment I Use and Books I Recommend:
    www.amazon.com...
    ▶️ You Can Find Me On:
    My Website - coreyms.com/
    My Second Channel - / coreymschafer
    Facebook - / coreymschafer
    Twitter - / coreymschafer
    Instagram - / coreymschafer
    #Linux #Windows

Комментарии • 481

  • @sergeikomarov3160
    @sergeikomarov3160 6 лет назад +309

    Still not sure why this channel is so underrated, these are some of the best cs videos I've seen on youtube. Keep up the good work :)

    • @MetaphysicalAxiom
      @MetaphysicalAxiom 5 лет назад +2

      Likely there are not many people whom take a heavily motivated interest in this level of nerdiness. The most common demographic on youtube is 14-26 year old male gamers. If it's very popular within mainstream anything; it's likely trash. So the lack of interest in this means it actually has value. ;-)

    • @knifeyonline
      @knifeyonline 5 лет назад

      @@MetaphysicalAxiom I think maybe if this video explained what the point of it was people might be more interested...

    • @MetaphysicalAxiom
      @MetaphysicalAxiom 5 лет назад

      @@knifeyonline 1st off, why are you giving me feedback for content that's not mine? You're right though, it is prudent to start with a premise.
      Secondly, anybody who searching for tutorials on Ubuntu already know what the purpose is.
      With knowledge and expanding consciousness there are those instances where we just can't get there from here. This may be one of those instances.
      Remember, it's all about the right question or questions as it usually is. And when I say right questions I mean questions with purpose that efficiently lead us to the information we are looking for.
      Do you have a question?

    • @waellerbe
      @waellerbe 5 лет назад +1

      @Sergei: This channel *and* the content of this video will be appreciated by those of (techies) who see the value of WSL running on Windows. Having learned about #Markdown, I now have a *more creative* way to learn about various Linux commands.
      In summary, the command line provides a wealth of functionality and power than a traditional GUI. Customization (powered by Zsh Shell) is another branch of the Command Line world that some have yet to discover.

    • @Grampssssss
      @Grampssssss 4 года назад

      @@waellerbe Its because he pronounces ubuntu as oobuntoo

  • @zoudino1587
    @zoudino1587 6 лет назад +19

    I am crying right now!! This saves my life. I am searching good tutorial for months.

  • @kannansm903
    @kannansm903 4 года назад +19

    Actually the one thingwhich I really wanted to do on windows is using linux commands but not able to find the steps to do it 😊 finally this video made my day

  • @b00i00d
    @b00i00d 4 года назад +3

    so far I'd followed Corey's Python vids and independently I'd actually installed Ubuntu on Windows so I could play with Linux (including bash, gcc, nasm etc). I had no idea Corey has covered this stuff, neither did I realise that you can view your win FS from Linux (and vice versa!). Imagine my delight when I accidentally came across this here video!... Beyond the pure excitement of being able to do that and all the playing about, it also means no more weird paste between command line and terminal window when transferring programs etc etc Muchas gracias Corey! Your channel is pure gold! :)))

  • @DrownedSimo
    @DrownedSimo 5 лет назад +18

    You, man, you answer to questions I would've never imagined. You won't stop on basic stuff, you try to make our lives easier

  • @wolfisraging
    @wolfisraging 5 лет назад +30

    This video saved me from switching my entire life to Mac. Thanks a ton!

    • @jackfrosterton2530
      @jackfrosterton2530 4 года назад +11

      You should donate your savings to charity, feed a village

  • @TayakornRakwetpakorn
    @TayakornRakwetpakorn 5 лет назад +81

    Ctrl + L to clear the screen. He did that at 4:26

    • @manasupadhyay266
      @manasupadhyay266 5 лет назад

      Thx

    • @rangarajann1781
      @rangarajann1781 3 года назад +2

      I have been wondering how he do that without any command in all his videos 😂

    • @VikasYadav-fu8cq
      @VikasYadav-fu8cq 3 года назад

      what a god . I literally was about to google it.

    • @TPHBLIB
      @TPHBLIB 3 года назад

      Actually the way you must have figured this is by looking at 13:11

    • @Salmane759
      @Salmane759 3 года назад

      Thankyou life saver

  • @kerwinso
    @kerwinso 5 лет назад +77

    bash tip: instead of:
    $ nano ~/.bashrc
    $ source ~/.bashrc
    you can do:
    $ nano ~/.bashrc
    $ source !$
    The `!$` is a shortcut equivalent to "use the same argument that you used in the previous bash command".

    • @skymer7471
      @skymer7471 5 лет назад

      Wow .. thanks

    • @hiteshrohira7968
      @hiteshrohira7968 4 года назад +1

      Please can you give me a source to learn these bash commands??

    • @DerScheisse
      @DerScheisse 3 года назад +2

      sudo -p "Oh look at this f**kin winner tryin to update his sh*t" apt-get update
      *remove asterisks or it might throw an error

    • @legendarytwister3656
      @legendarytwister3656 3 года назад

      Thanks!

  • @CodeCancerLab
    @CodeCancerLab 3 года назад

    Did the people who unliked this video actually watch it from start to finish? It's one of the clearest videos on running Linux ever.

  • @welwitschia
    @welwitschia 5 лет назад +8

    Thank you so much for this video. I am teaching myself many skills I need to make the jump from academia to data science, and this has always been one of the most obscure CS topics for me. I've always used windows machines and having the possibility to use a bash inside windows without the need of a virtual machine is incredibly useful.

    • @waellerbe
      @waellerbe 5 лет назад

      welwitschia: To your point (shout out) WSL will definitely use *less* resources than a virtual machine

  • @RC-bl2pm
    @RC-bl2pm 6 лет назад +112

    As i learn programming on my windows machine I notice every single tutorial/course/lesson the teacher is on a macbook pro? 3600$ just to get in a bash environment? Corey you helped me get with the cool kids this time! Thanks!

    • @JSiuDev
      @JSiuDev 5 лет назад +3

      It is not that expensive ($3.6k ?????) if you go for the low/mid model of macbook as long as you are not doing video editing on it. Macbook give you the unix/linux terminal while release you from some manual task if you are not familiar (or don't want to border) with linux setup. Mac has some advantage over linux in some cases, depends on your own needs, and you don't need to most expensive models.

    • @sebastiangudino9377
      @sebastiangudino9377 5 лет назад +3

      They don't use mac just because mac has a bash enviroment. It's simply that it can do a lot of other things, specially for video production where you have a lot of tool for editing and mixin. They could go for a mid range linux machine, but you can use a mac for a lot more things than just programing, while linux is a powerhoues for programing but it lacks a bit in general use areas. I get yout sentiment tho

    • @shady4tv
      @shady4tv 4 года назад +11

      Linux is free lol

    • @breakdancerQ
      @breakdancerQ 4 года назад

      Lol that's probably not the reason they bought a Mac lol

    • @GizmoMaltese
      @GizmoMaltese 4 года назад +1

      @@sebastiangudino9377 But if you're a gamer, you want a PC. Most of us don't edit videos. Macs are overpriced. It's become a status symbol like Beats headphones or those airpods. Also, you can use your Android phone with Windows not Mac. Apple wants to restrict your choices so you have more freedom with Windows. Fuck the cool kids who are really lemmings.

  • @davidschroeder2732
    @davidschroeder2732 2 года назад +5

    As usual, Excellent explanation. Can always count on you for clear, well organized, articulate tutorials.

  • @NadineLynch10
    @NadineLynch10 3 года назад +6

    I’m a computer science student and part of my course has Linux command lines, this video is so helpful, I’ve been struggling to set up a virtual machine in my laptop and it keeps stalling.

  • @raducotisel4873
    @raducotisel4873 4 года назад +12

    I think this is the best tutorial for this topic i have encountered so far! Thanks, man! You are awsome!

  • @ConradMare
    @ConradMare Год назад

    Wow, not ever has anyone answered ALL my questions in-full like that! Thank you so much!

  • @jakobfredriksson2272
    @jakobfredriksson2272 3 года назад +15

    This man is a saint.

  • @hanwenlinda864
    @hanwenlinda864 3 года назад +1

    This man saved me from using VM’s for weeks🙏

  • @JxKILLAA
    @JxKILLAA 4 года назад

    This man is a blessing, was going to opt for upgrading my Macbook pro but deciding on waiting another year for Apple Silicon. This is exactly what I needed to transition my current workflow to my PC !!

  • @johnschmidt874
    @johnschmidt874 5 лет назад +6

    I never knew that bash can be run on windows. Thanks for the tutorial mate!

  • @happysprollie
    @happysprollie 6 лет назад +12

    Another great tutorial. I followed along (successfully) on my Win10 installation which happens to be a VM running on my Mac. I'm starting to wonder how many layers of virtualisation and abstraction you can apply before the machine stops working.

  • @sheepleslayer586
    @sheepleslayer586 4 года назад

    Incase you have a similar issue...
    To turn the feature on, I clicked the bottom left (for mine) bar and typed an 'F', which brought me to a different page. Top right of new page will have "programs and features", click that and BOOM! Left side topish, will be the option.
    Thanks for the help, I did my part lol

  • @atulitanand8664
    @atulitanand8664 3 года назад

    I learned so much in like ten freking minutes. I feel like half of the programmer already and yeah this channel is underrated. Wish I had found it out before. Any ways good work brother.

  • @masterludovicus802
    @masterludovicus802 3 года назад

    Just installed all of this prior to watching your video and as always, your videos are the best ones that explain all of this. You are a godsend!

  • @moxyfruv
    @moxyfruv 2 года назад +1

    Thank you for this wonderful, CLEAR, easy - to - follow tutorial! You make it so simple - it is TRULY for beginners. I'm checking out more of your vids.

  • @annacalderon1566
    @annacalderon1566 3 года назад

    I spent all day trying to figure out how to get to my desktop with forums and nobody mentioned /mnt/. THANK YOU!

  • @justsurajp
    @justsurajp 6 лет назад

    Absolute gold!!! Great Video!!!
    PS: If there is anybody who is stuck on the the part where you are unable to install Ubuntu from Windows Store, try installing the same from cmd in the developer mode. It works fine!

  • @MarkJay
    @MarkJay 6 лет назад +16

    Great video. I'll definitely be using bash for Windows from now on.

  • @NickRO1989
    @NickRO1989 5 лет назад +5

    I love your tutorials! Have helped me so much. Thanks to you I've been able to make secure and access many server projects and my home is now safer and running linux for almost everything!!!

  • @isiTsotsi
    @isiTsotsi 3 года назад +1

    another Quick tip: In windows, hold shift+right click on a folder. This gives you the option to directly open a linux prompt in that folder.

  • @frankconte2457
    @frankconte2457 6 лет назад +2

    Great introduction to Linux on Windows. Glad to be a Patreon subscriber.

  • @brothercaleb
    @brothercaleb 4 года назад

    Life saver... no more virtual machines just to use bash 👍🏾👍🏾👍🏾👍🏾

  • @bivash489
    @bivash489 3 года назад

    Installed the ubuntu subsys and tried ls and nothing happened. Then found here 4:45 came here for this. thanks so much. now I'm a subscriber.

  • @legendarytwister3656
    @legendarytwister3656 3 года назад

    for apt update and upgrade:
    You could just combine the two commands with &&, so it could be
    sudo apt update && sudo apt upgrade
    for those who dont know, you can run as many as you want commands at the same time, depending of what you are doing

  • @TheHornet79
    @TheHornet79 5 лет назад +3

    Thank you! You saved me money from buying a new computer. Glad they created this work around since I am already comfortable with Unix and terminal. Everything went so smoothly!

    • @waellerbe
      @waellerbe 5 лет назад

      TheHornet79: Terminal is the “place to be.” Having been introduced to WSL (Windows Subsystem for Linux, I am loving the terminal more with each new day.

    • @iamv0id202
      @iamv0id202 4 года назад

      You don't need a new computer to use linux tho

  • @adamhendry945
    @adamhendry945 4 года назад +4

    @Corey Great video (big fan of your work)! Can you please make a video for WSL version 2 and incorporation into VSCode? Certain things I think would be helpful to cover are:
    (1) Creating separate virtual environments for Linux vs. Windows,
    (2) Remote-WSL Extension (Reopen Folder in WSL vs. Reopen Folder in Windows),
    (3) Local settings.json vs. Remote-WSL settings.json (Preferences: Open Remote Settings),
    (4) Managing WSL settings.json vs. Local settings.json, and
    (5) Adding a .gitattributes to ensure consistent line endings on WSL vs Windows
    What do you think? Maybe viewers could "like" this (thumbs up) if they want to see this?

  • @saikiranvakkalagadda4495
    @saikiranvakkalagadda4495 4 года назад +1

    You are the game-changer of my day, it's working :)

  • @bilalchandiabaloch8464
    @bilalchandiabaloch8464 2 года назад

    Really help for me. Specially mounting the drive and using grep command.

  • @sawekb8102
    @sawekb8102 3 года назад

    Corey you are an explanation guru :p allways fast simple and to the point with good examples and possible problems solutions.

  • @jeffwang8704
    @jeffwang8704 4 года назад +1

    Very succinct tutorial! Subscribed! Thanks Corey!

  • @creedo8301
    @creedo8301 2 года назад

    huge help man, that was amazing !!

  • @tejasarlimatti8420
    @tejasarlimatti8420 5 лет назад +3

    Corey! Man, you never disappoint :)

  • @sonyamassey682
    @sonyamassey682 3 года назад

    Thank you so much I am in a class that I have to use Linux you went step by step and you made everything so easy

  • @abhishekrajeev1028
    @abhishekrajeev1028 2 года назад

    the best channel on coding

  • @kapitaindowning5219
    @kapitaindowning5219 5 лет назад +1

    You sir have earned yourself a new subscriber! This video help me out a lot :)

  • @gaunterodimm3569
    @gaunterodimm3569 5 лет назад +1

    Corey Schafer with another gem...

  • @demonslvator9096
    @demonslvator9096 5 лет назад +2

    AHHHHH THANK YOU SO MUCH!!!!!
    Now i can re-do exercices at home!!

  • @rangabharath4253
    @rangabharath4253 6 лет назад +14

    Looking forward to learn Django python.Please make videos on this topic.tq

  • @tanyabose8085
    @tanyabose8085 Год назад

    thank you so much for making this video, helped me a lot and saved my time while working on projects

  • @adithyaparupudi1336
    @adithyaparupudi1336 2 года назад

    this is the best video ever. Thank you so much for your hardwork. I was able to follow this seamlessly

  • @roselynjoel7480
    @roselynjoel7480 3 года назад +1

    Thanks alot.this a life saving video

  • @ronkasper8721
    @ronkasper8721 6 лет назад +1

    You saved the day. This is very helpful. Thanks for helping me out.

  • @OsantoR
    @OsantoR Год назад

    Tysm !!! In Uni we just started using Linux and I was afraid i have to use a VM . I subscribed and excited to lern more !

  • @pythonlearning1932
    @pythonlearning1932 4 года назад +1

    awesome as always

  • @fahimmontasir2083
    @fahimmontasir2083 3 года назад

    RUclips recommended this video and after watching it, my brain recommended me to subscribe, so i just did.

  • @ershadtantry5774
    @ershadtantry5774 3 года назад

    Thank you very much Corey. Finally found a video that actually solved my problem

  • @boli4359
    @boli4359 4 года назад +1

    Thank you very much for making amazing tutorials! My best wishes!

  • @steveswitzer4353
    @steveswitzer4353 4 года назад +1

    Great understandable and i really need this for work so thanks again corey

  • @neiltunnah3983
    @neiltunnah3983 5 лет назад +1

    Fantastic Videos and very well presentated. Good Work Corey

  • @hassannameghi125
    @hassannameghi125 4 года назад +1

    Nice Job Corey.

  • @swurlnplot
    @swurlnplot 3 года назад

    Awesome tutorial!!! Helped me so much as a BASH beginner

  • @suchitragiri4546
    @suchitragiri4546 3 года назад

    Really a very insightful video, I enjoyed it a lot and got cleared many things which I was facing difficulty.

  • @RJR_22
    @RJR_22 3 года назад

    Thank you for sharing your process, it was very helpful and easier to follow.

  • @ukaszferenc5249
    @ukaszferenc5249 3 года назад

    This is so neat video, can't recommend enough! Instant sub!

  • @siroccomask
    @siroccomask 5 лет назад +4

    Thanks so much! This was way easier than using cygwin

  • @unubajimmy4
    @unubajimmy4 2 года назад

    CONGRATULATIONS to me and a great THANK YOU my mentor!. After several unsuccessful attempts, this awesome came to my rescue. I can't thank you enough!!!
    Would you please another step by step guide like this on how to install Linux in virtualbox on windows? I remain grateful!

  • @freeman4059
    @freeman4059 3 года назад

    Works,you got a sub!

  • @LEKSANDER01
    @LEKSANDER01 2 года назад

    THANK YOU SO MUCH!!!! I favored bash over windows cmd

  • @pankajpanwar3764
    @pankajpanwar3764 6 лет назад +1

    thanx corey your videos helps a lot

  • @venkatsrkyt
    @venkatsrkyt 6 лет назад

    This is really good, bro. Thanks you for the nice and quick tutorial.

  • @prantasaha5032
    @prantasaha5032 4 года назад

    Thank you very much! Helped me a lot

  • @swarupsarangi734
    @swarupsarangi734 4 года назад +1

    loved it !... Can't thank u enough for this and all other videos.

  • @zorojuro5106
    @zorojuro5106 4 года назад +1

    u are my CS teacher

  • @adam120yep5
    @adam120yep5 3 года назад

    You are a good man , thank you.
    Also you've just earned a new subscriber!

  • @youdjparents
    @youdjparents 4 года назад

    so clear and concise. thank you

  • @smithcodes1243
    @smithcodes1243 3 года назад

    Great video! Very helpful, cheers mate!

  • @erickrh
    @erickrh 3 года назад

    Thanks man. This is very useful.

  • @student_0224
    @student_0224 3 года назад +1

    Thanks a lot for this

  • @k-popgirl.koreanpop
    @k-popgirl.koreanpop 2 года назад

    Very useful Video . Thank you for this video. Pls continue to share knowledge.

  • @ChrisRiley
    @ChrisRiley 5 лет назад +1

    Great video! Thanks for this.

  • @Permatalol
    @Permatalol 10 месяцев назад

    excellent, thats just what I needed

  • @stephenjacks8196
    @stephenjacks8196 3 года назад

    Note that Powershell runs bash commands. (I use powershell for work.)

  • @anayapathak7162
    @anayapathak7162 4 года назад

    Trust me guys, this single video is enough to help you to start with linux on your windows (Btw build essential part was only thing missing)

  • @vincentwolfgramm-russell7263
    @vincentwolfgramm-russell7263 4 года назад +1

    Very great video, thank you!

  • @hulkhatson8536
    @hulkhatson8536 5 лет назад +1

    Wow thanks for the video, I was unaware of this

  • @rangabharath4253
    @rangabharath4253 6 лет назад

    Hi Corey, Your videos are awesome and anyone can learn easily by watching your videos. I am a web developer.Now i am working on a game using python,pygame. I need your help. The concept of the game is: A person will enter into a room and then he finds a lot of balls,all are of same color.when he goes and picks one ball, the color of the ball changes and when he puts back the color remains same as previous one. How to do it using python. Will u please make a video on this. Thank you so much for your videos. These videos are helping a lot of people to learn Python easily. Thank you so much.☺😊👍

  • @kellyk6257
    @kellyk6257 3 года назад

    Great tutorial. Thanks for providing. I'll definitely check out your other videos

  • @sammychafiqui1817
    @sammychafiqui1817 4 года назад +1

    Thank you sir for this

  • @sameerk12982
    @sameerk12982 4 года назад

    Greate video...helped a lot....appreciated.

  • @tpoece
    @tpoece Год назад

    Excellent Video. Thank You Sir.

  • @John-cb8fp
    @John-cb8fp 4 года назад

    thank you for increasing the font size. Thank you

  • @porlando12
    @porlando12 6 лет назад

    Awesome tutorial Corey!

  • @wudangbrno-czechrepublic9099
    @wudangbrno-czechrepublic9099 3 года назад

    Excellent tutorial, thank you ...

  • @salkdjfasldkfjsdlk
    @salkdjfasldkfjsdlk 6 лет назад +1

    Thanks for your videos. I use Virtualbox and have many VMs with various distros. It's a nice way to try other distros and create environments for specific purposes and languages.

  • @moinkhan
    @moinkhan 3 года назад

    Great tutorial. thanks!

  • @bitteshchaki1078
    @bitteshchaki1078 4 года назад

    Excellent video sir... Thanks for such lucid explaination...

  • @forwardlashnotbacklash5726
    @forwardlashnotbacklash5726 4 года назад

    hi i am new to all this and have to say your vid was very helpful, i had to spend 4 hours looking for a simple mistake i made, a / i did not type....hahaha thank you really want to learn linux

  • @richardogoma
    @richardogoma Год назад

    Great tutorial! Once you enable wsl, run wsl --install d Ubuntu

  • @juliantambwe8551
    @juliantambwe8551 Год назад

    Very informative,thanks

  • @azizaalghamdi8237
    @azizaalghamdi8237 3 года назад

    thanks, it was really helpful

  • @AbAz1173
    @AbAz1173 5 лет назад +1

    Excellent..Thank You!!