Skip to main content

Get Started With the Windows Subsystem for Linux


You may already know the power of Linux, and its features make the best place for programmers and developers 

If you're not going to install the Linux operating system but you want to use the Linux offered features in windows this post maybe yours.

You can get the pure Linux experience natively in windows machine  through the windows subsystem Linux   (WSL)




here the Steps to install and configure Linux subsystem in windows 

That feature has been available from Windows 10 2016

First, you want to go to 
Control Panel\Programs\Programs and Features

now you can see an option like "Turn windows features on or off" on your left side 

open that option, Now you want to check the Windows subsystem for Linux' checkbox 





After you check that option restart your system 


Okay now you want to search "bash" from the start menu, Open that  

It shows the message like no distribution installed   

Let's install the Linux distribution on your machine, for that  Open your Microsoft store 


In that tutorial, I am going to install the Ubuntu subsystem ( Debian Based) 

So search the ubuntu from the Microsoft store
Click the GET button to download that 



After the Installation, Search that Ubuntu from your start menu Open that 

It will pop up the one bash terminal 
By default, Ubuntu subsystem did not have Graphical User Interface (GUI)

Just wait some time to install the Linux in your system, It will take some time

After that, it will prompt them to enter the username of that Linux system 
Then it will ask the password, Remember that password, is your root password for the Linux subsystem to perform the Root Access 

Done you have now successfully installed the Ubuntu in your windows, Afterwards, you can simply execute Linux commands in your bash terminal like a normal Linux System 
example like   sudo apt-get update 







Note: by default, that directory located in the home directory of that user, You can change that using simply cd (Change Directory) command like Linux

Example Now you may want to move your directory to C Drive 

The command looks   like    cd /mnt/c   




We can change the default directory location using  .bashrc file, stay tuned for upcoming posts

Thank you for reading...




checkout the best online skill learning platform Pluralsight with 7000+ courses from industry level trained teachers Sign-up now with 50% offer


Comments

Post a Comment