1 00:00:06,639 --> 00:00:10,369 Another common way to start with Linux is the Windows subsystem for Linux. 2 00:00:11,630 --> 00:00:18,629 This Windows subsystem for Linux provides by default an Ubuntu instance that can be started as a part of the Windows operating system. 3 00:00:20,070 --> 00:00:22,829 Alternatively, other distributions may also be used. 4 00:00:24,010 --> 00:00:28,560 So WSL uses parts of the Windows operating system for. For that reason it's 5 00:00:28,560 --> 00:00:33,109 a bit different from other distributions regarding the boot procedure and kernel use. 6 00:00:34,270 --> 00:00:37,829 And as a result it does not offer a full command line experience. 7 00:00:39,210 --> 00:00:45,829 For that reason, for an in depth exploration of Linux features, I would recommend you don't use wsl, but you 8 00:00:45,829 --> 00:00:52,450 better install Linux in a virtual machine in a way that we have explored in the previous two lessons. 9 00:00:53,600 --> 00:00:56,880 If you want to do it anyway. This is a rough overview of how to do it. 10 00:00:57,659 --> 00:01:02,700 First, in the Windows features you need to enable Hyper V, Then you restart. 11 00:01:03,679 --> 00:01:07,180 Next you're in PowerShell with administrator privileges. 12 00:01:08,019 --> 00:01:12,015 Next you use WSL install from the PowerShell, you restart 13 00:01:12,015 --> 00:01:16,010 and you have your WSL. And that's how it works. 14 00:01:17,730 --> 00:01:21,844 How does it work if you want to use WSL on Windows? Well, 15 00:01:21,844 --> 00:01:25,959 you need an administrator powershell, and from there you. You use WSL install. 16 00:01:30,879 --> 00:01:36,585 So now that I have updated wsl, I need to install a distribution 17 00:01:36,585 --> 00:01:42,290 because WSL has told us that there's no distribution and that makes sense. 18 00:01:42,849 --> 00:01:49,525 So we need WSL install Ubuntu and that's all. Install Ubuntu. And now it's telling 19 00:01:49,525 --> 00:01:56,200 us that it has been created successfully. And now we go through some basic setup. 20 00:01:56,709 --> 00:01:59,840 So I'm making a user account with the name Student. 21 00:02:00,359 --> 00:02:02,319 Feel free to pick anything that you want. 22 00:02:02,849 --> 00:02:04,409 I need to enter the password. 23 00:02:05,349 --> 00:02:08,849 Look at that. Here I'm in my WSL machine. 24 00:02:10,569 --> 00:02:11,270 What does that mean? 25 00:02:12,210 --> 00:02:17,200 I'm in the WSL machine and I like to use Uname R, 26 00:02:17,200 --> 00:02:22,190 which is testing my Linux kernel, which is the Microsoft WSL kernel, 27 00:02:22,189 --> 00:02:27,180 typing ls, which is listing files in the current directory. 28 00:02:27,780 --> 00:02:31,360 And here we have the WSL Linux environment. 29 00:02:32,159 --> 00:02:35,360 Now there's one thing I want you to be aware of. This is wsl. 30 00:02:36,300 --> 00:02:41,159 It's a Linux layer that runs on top of Windows if you want to learn Linux. 31 00:02:41,860 --> 00:02:47,305 In fact, I don't recommend you use WSL because so many things are different, because it's 32 00:02:47,305 --> 00:02:52,750 still running on a Windows foundation and you see many parts of the Windows operating system. 33 00:02:53,250 --> 00:02:57,349 So instead of using wsl, better install Linux in a virtual machine 34 00:02:57,349 --> 00:03:01,449 or run it in the cloud, as explained in the next lesson.