Skip to main content

Installing Linux Command Line in Windows 10

Before starting out with learning command line, you should have someplace where you can practice using them.
If you are a Linux user, you are set and you can jump to the next blog post. If you are on Windows 10, stay tuned, I will help you out!

P.S. You would need the Windows 10 Fall Creators update.

First things first, what is your favorite distribution? 

Kali is one of the most famous in the pentesting world. Well, it is mostly what newcomers use. After getting experienced, it does not matter which distro (distribution) you use. You can use Kali, it is what I will be using throughout my blog.

We are not going to "install" any operating system here. The experience would be like WinE but for Windows. So, let us see how to get the command line up and running.

I think that you would have chosen your favorite distro by now. I will use Kali Linux.

Now, go to the Start and type in the search, "Turn Windows features on or off".
Select the first entry that comes up.

You will see a window like this. Go to the bottom and turn on the "Windows Subsystem for Linux" checkbox and click OK.
Now Restart the Operating System.

After Windows 10 comes back up, head over to the Windows Store.

Type in the Search "Kali Linux" or the name of your choice.


Install it and then Launch it.

It will take some time to install Kali.
Type the username and password of your choice. It is separate from your Windows 10 password.

You are ready to go now! You will see something like this...

You can now start it by using wsl command in the Windows command prompt or writing it in Search of Start Menu or you can directly type Kali Linux and it will pop.

You are all set!
Signing off! Over n Out! Godspeed!

Comments

Popular posts from this blog

Troubleshooting Error: "Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?"

While installing the openssh-server package, I encountered this error. If you have come across the same problem follow the given steps and you may be all okay in less than a minute. First type this command sudo apt edit-sources in the linux command line. Enter your password if it prompts you. Now, it will prompt you to select an editor. Choose the Nano Text Editor by typing and entering "1" or it will directly open the editor window. Add the "s" at the exact location to replace "http" from "https" and switching to a secure server. Now run the following command, sudo apt-get update This will fix everything. You can follow me on Kali Linux Forums .

Some Common Shell Commands That You Should Know

On Linux you  have to prefix the command with "sudo" keyword to run it with root privileges. It is similar to getting Administrator rights in Windows.  The “root” user on UNIX platforms has full system access, like the “Administrator” user on Windows. Your Windows file system is located at  /mnt/c  in the Bash shell environment. Here are some basic commands of Linux that are similar to Windows. Bash indicates the Linux command and DOS is it's Windows analoge. Change Directory:  cd  in Bash,  cd  or   chdir  in DOS List Contents of Directory:   ls  in Bash,  dir  in DOS Move or Rename a File:  mv  in Bash,  move  and   rename  in DOS Copy a File:  cp  in Bash,   copy  in DOS Delete a File:  rm  in Bash,   del  or  erase  in DOS Create a Directory:   mkdir  in Bash,  mkdir  in DOS ...