Another common way to start with Linux is the Windows subsystem for Linux.
This Windows subsystem for Linux provides by default an Ubuntu instance that can be started as a part of the Windows operating system.
Alternatively, other distributions may also be used.
So WSL uses parts of the Windows operating system for. For that reason it's
a bit different from other distributions regarding the boot procedure and kernel use.
And as a result it does not offer a full command line experience.
For that reason, for an in depth exploration of Linux features, I would recommend you don't use wsl, but you
better install Linux in a virtual machine in a way that we have explored in the previous two lessons.
If you want to do it anyway. This is a rough overview of how to do it.
First, in the Windows features you need to enable Hyper V, Then you restart.
Next you're in PowerShell with administrator privileges.
Next you use WSL install from the PowerShell, you restart
and you have your WSL. And that's how it works.
How does it work if you want to use WSL on Windows? Well,
you need an administrator powershell, and from there you. You use WSL install.
So now that I have updated wsl, I need to install a distribution
because WSL has told us that there's no distribution and that makes sense.
So we need WSL install Ubuntu and that's all. Install Ubuntu. And now it's telling
us that it has been created successfully. And now we go through some basic setup.
So I'm making a user account with the name Student.
Feel free to pick anything that you want.
I need to enter the password.
Look at that. Here I'm in my WSL machine.
What does that mean?
I'm in the WSL machine and I like to use Uname R,
which is testing my Linux kernel, which is the Microsoft WSL kernel,
typing ls, which is listing files in the current directory.
And here we have the WSL Linux environment.
Now there's one thing I want you to be aware of. This is wsl.
It's a Linux layer that runs on top of Windows if you want to learn Linux.
In fact, I don't recommend you use WSL because so many things are different, because it's
still running on a Windows foundation and you see many parts of the Windows operating system.
So instead of using wsl, better install Linux in a virtual machine
or run it in the cloud, as explained in the next lesson.