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
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 :)
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. ;-)
@@MetaphysicalAxiom I think maybe if this video explained what the point of it was people might be more interested...
@@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?
@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.
@@waellerbe Its because he pronounces ubuntu as oobuntoo
I am crying right now!! This saves my life. I am searching good tutorial for months.
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
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! :)))
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
This video saved me from switching my entire life to Mac. Thanks a ton!
You should donate your savings to charity, feed a village
Ctrl + L to clear the screen. He did that at 4:26
Thx
I have been wondering how he do that without any command in all his videos 😂
what a god . I literally was about to google it.
Actually the way you must have figured this is by looking at 13:11
Thankyou life saver
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".
Wow .. thanks
Please can you give me a source to learn these bash commands??
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
Thanks!
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.
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.
welwitschia: To your point (shout out) WSL will definitely use *less* resources than a virtual machine
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!
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.
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
Linux is free lol
Lol that's probably not the reason they bought a Mac lol
@@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.
As usual, Excellent explanation. Can always count on you for clear, well organized, articulate tutorials.
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.
I think this is the best tutorial for this topic i have encountered so far! Thanks, man! You are awsome!
Wow, not ever has anyone answered ALL my questions in-full like that! Thank you so much!
This man is a saint.
This man saved me from using VM’s for weeks🙏
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 !!
I never knew that bash can be run on windows. Thanks for the tutorial mate!
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.
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
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.
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!
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.
I spent all day trying to figure out how to get to my desktop with forums and nobody mentioned /mnt/. THANK YOU!
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!
Great video. I'll definitely be using bash for Windows from now on.
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!!!
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.
Great introduction to Linux on Windows. Glad to be a Patreon subscriber.
Thanks!
Life saver... no more virtual machines just to use bash 👍🏾👍🏾👍🏾👍🏾
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.
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
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!
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.
You don't need a new computer to use linux tho
@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?
You are the game-changer of my day, it's working :)
Really help for me. Specially mounting the drive and using grep command.
Corey you are an explanation guru :p allways fast simple and to the point with good examples and possible problems solutions.
Very succinct tutorial! Subscribed! Thanks Corey!
huge help man, that was amazing !!
Corey! Man, you never disappoint :)
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
the best channel on coding
You sir have earned yourself a new subscriber! This video help me out a lot :)
Corey Schafer with another gem...
AHHHHH THANK YOU SO MUCH!!!!!
Now i can re-do exercices at home!!
Looking forward to learn Django python.Please make videos on this topic.tq
thank you so much for making this video, helped me a lot and saved my time while working on projects
this is the best video ever. Thank you so much for your hardwork. I was able to follow this seamlessly
Thanks alot.this a life saving video
You saved the day. This is very helpful. Thanks for helping me out.
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 !
awesome as always
RUclips recommended this video and after watching it, my brain recommended me to subscribe, so i just did.
Thank you very much Corey. Finally found a video that actually solved my problem
Thank you very much for making amazing tutorials! My best wishes!
Great understandable and i really need this for work so thanks again corey
Fantastic Videos and very well presentated. Good Work Corey
Nice Job Corey.
Awesome tutorial!!! Helped me so much as a BASH beginner
Really a very insightful video, I enjoyed it a lot and got cleared many things which I was facing difficulty.
Thank you for sharing your process, it was very helpful and easier to follow.
This is so neat video, can't recommend enough! Instant sub!
Thanks so much! This was way easier than using cygwin
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!
Works,you got a sub!
THANK YOU SO MUCH!!!! I favored bash over windows cmd
thanx corey your videos helps a lot
This is really good, bro. Thanks you for the nice and quick tutorial.
Thank you very much! Helped me a lot
loved it !... Can't thank u enough for this and all other videos.
u are my CS teacher
You are a good man , thank you.
Also you've just earned a new subscriber!
so clear and concise. thank you
Great video! Very helpful, cheers mate!
Thanks man. This is very useful.
Thanks a lot for this
Very useful Video . Thank you for this video. Pls continue to share knowledge.
Great video! Thanks for this.
excellent, thats just what I needed
Note that Powershell runs bash commands. (I use powershell for work.)
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)
Very great video, thank you!
Wow thanks for the video, I was unaware of this
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.☺😊👍
Great tutorial. Thanks for providing. I'll definitely check out your other videos
Thank you sir for this
Greate video...helped a lot....appreciated.
Excellent Video. Thank You Sir.
thank you for increasing the font size. Thank you
Awesome tutorial Corey!
Excellent tutorial, thank you ...
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.
Great tutorial. thanks!
Excellent video sir... Thanks for such lucid explaination...
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
Great tutorial! Once you enable wsl, run wsl --install d Ubuntu
Very informative,thanks
thanks, it was really helpful
Excellent..Thank You!!