If you are using windows install Windows Subsystem for Linux (WSL) so you can install using linux commands
Windows Subsystem for Linux (WSL) allows you to run Linux distributions alongside your Windows installation. To install WSL on Windows, follow these steps:
Enable the WSL feature:
a. Press the Windows key and type "features" to search for "Turn Windows features on or off."
b. Click on the search result to open the "Windows Features" window.
c. Scroll down, find "Windows Subsystem for Linux," and check the box next to it.
d. Click "OK," and Windows will prompt you to restart your computer to apply the changes. Restart your computer.
Install a Linux distribution:
After enabling WSL and restarting your computer, you can now install a Linux distribution from the Microsoft Store.
a. Press the Windows key and type "store" to search for "Microsoft Store."
b. Click on the search result to open the Microsoft Store.
c. In the search bar, type "Linux" and press Enter.
d. Choose a Linux distribution (e.g., Ubuntu, Debian, or Fedora) and click "Get" or "Install" to download and install it.
e. Once the installation is complete, you can launch the Linux distribution by clicking "Launch" in the Microsoft Store or by searching for the distribution's name in the Start menu.
Set up your Linux distribution:
When you launch the Linux distribution for the first time, you'll see a terminal window.
a. Wait for the initialization process to complete (it might take a few minutes).
b. Create a new UNIX username and password when prompted. This will be your default user for this Linux
distribution and will have superuser privileges (using sudo).
That's it! You've installed WSL and a Linux distribution on your Windows computer. You can now use the Linux terminal and run Linux commands or applications alongside your Windows environment. Remember that this is not a full Linux installation, and some features or applications might not be available or function differently than on a native Linux system.Home