How to Use Linux Bash Shell on Windows 10

How to Use Linux Bash Shell on Windows 10:

It is possible to install and use Linux bash shell on your Windows 10 PC. It is a Linux subsystem that runs on your PC without . the walks of install linux on virtual machine.

With this Linux Bash Shell on Windows 10, you can run various Linux commands and apps (not graphical ones) on your Windows PC. Furthermore, you have the option to install your favorite Linux distribution including Ubuntu.

In this guide, we will focus on installing the Ubuntu distribution of Linux on Windows 10.

Step 1: Enable Linux in Windows Features

The first step to perform is to enable and install Windows Subsystem for Linux on your Windows 10 PC. You can do this from the Windows Features panel.

This option only works for 64-bit versions of Windows 10. check what version of your pc is it running before you proceed.

If your PC runs a 64-bit version of Windows 10, follow these steps:

  1. Open Control Panel on your PC.
  2. Choose programs on the main Control Panel window.
  1. On the following screen, select turn Windows features on or off from programs and Features section.
  1. In Windows features In the window that opens, scroll down and enable Windows Subsystem for Linux the option.
  2. Choose Okay at the bottom of the window to save your changes.
  1. Windows will ask you to reboot your computer for the changes to take effect. Choose restart now To reboot your PC.

Step 2: Download and Install a Linux Distribution on Your PC

Now that Windows Subsystem for Linux is installed, download your preferred Linux distribution and install it on your PC. You can install more than one Linux distro available on Microsoft Store.

We will install the Ubuntu distro in the following steps.

  1. When your PC is backed up after the last step in the above section, open start menu, search Microsoft Store, and select Microsoft Store in search results.
  1. In shop, Choose search Type more in the top right corner Ubuntu. You can enter any other Linux distro name here if you want.
  2. Choose Ubuntu in search results.
  1. On the Apps screen of Ubuntu, choose install To install this Linux distribution on your PC. Windows will install this distro as if you were installing any other Store app.
  1. Close Microsoft Store when Ubuntu is installed.

Step 3: Configure Linux Bash Shell on Windows 10

Linux Bash Shell is now installed on your PC, and you are ready to start using it.

When you run the shell for the first time, it will ask you to configure some options. Here’s how to launch and configure the shell:

  1. open to start menu, search Ubuntu, and select Ubuntu in search results.
  1. When Ubuntu opens, it will start configuring some of its options automatically. Wait for it to end.
  2. when you see Enter new UNIX username At the prompt, type the username you want to use with the Bash shell. This username may be different from the username you use with your Windows user account. then press recorded.
  1. Ubuntu then asks you to create a password for the shell. Type the password and press recorded.
  1. Re-type the password and press recorded.
  2. The window will display various messages. At the bottom of these messages, you’ll see the username you just created and the name of your PC.
  1. Now you can start running Linux commands on your PC.

Step 4: Start Using Linux Bash Shell Commands on Windows 10

The Linux Bash Shell is now fully configured, and you can start running your commands in this. If you’re not sure which command to start with, the following will give you some ideas.

Note that each command that starts with sudo You will be required to enter a password You have created in the above section. This is because these commands require administrative privileges to run.

1. Update Package List

Order: sudo apt-get update

This command updates the package list for your specific Linux distribution. Keep in mind that this command doesn’t actually install any updates; It only updates the list.

2. Install Software Update

Order: sudo apt-get upgrade

Use this command to get updates for apps installed on your Linux distribution.

3. Install a New Program

Order: sudo apt-get install packagename

this command help you Install a Program on Your Linux Delivery. To change package name in the command with the name of the program you want to install.

For example, to install audacity, you would use the following command:

sudo apt-get install audacity

4. Remove an Installed Program

Order: sudo apt-get remove PackageName

To get rid of a program from your Linux distribution, replace using this command package name with the name of the program you want to remove.

5. Edit a Text File

Order: nano FileName.txt

This command opens Ubuntu’s built-in text editor for you to edit the specified file. be sure to replace file name with the actual name of the file you want to edit.

6. List the Contents of a Directory

Order: rasa (it’s a small L)

Use this command to display the contents of your current working directory.

7. Change Current Directory

Order: cd path

To change your current working directory, run this command by changing path You want to create your new working directory with the full path to the directory.

8. Download Files from the Internet

Order: wget URL

You can download files from internet to your computer with this command. change bus url in command with the web address of the file you want to download.

9. Clear Terminal Screen

Order: clear

This command clears everything out in your Terminal window and lets you start typing commands from scratch. Use it when your terminal screen is too cluttered.

10. Exit Terminal

Order: Go out

This command closes the terminal window. Use it when you are finished with your commands.

and they are necessary commands you should learn To get started with Linux Bash Shell on your Windows 10 PC. We hope this guide will help you.