It has become well-loved that Microsoft created PowerShell, its own open source command line, while Apple switched to using Unix as their foundation and acquired access to the Bash and Z shells. Don’t give up if you want to test using a Linux terminal but aren’t sitting next to a Linux system. You can use various services to run a Linux terminal inside of a browser. This article looks at a few of them and ought to help you get a better idea of your capabilities and potential output.
Chrome is a popular web browser that can be used to access a Linux terminal. However, you can also access a Linux terminal in Chrome by following these steps:
- Open Chrome and sign in.
- Click the three lines in the top left corner of the browser window (or press Ctrl+Shift+T).
- In the “New Incognito Window” dialog box, click “Linux (Ubuntu 14.04).”
- In the “Shell” field, type bash and press Enter.
- Type ls -l to see what files are in your current directory, and then type cd to change to that directory.
- Type ls -a to see all files in your current directory and their permissions, and then type chmod +x filename to make filename executable (you may need to enter your user password if you’re not logged in as root). ..
Steps to Run Linux terminal in Windows browser
Windows Subsystem for Linux (WSL) and Install Ubuntu in Windows browser
To use a Linux terminal on a Windows browser, you first need to activate the Windows Subsystem for Linux capability. After that, you can download and install the Linux distribution of your choosing. ..
The Windows Subsystem for Linux is a feature that allows you to use your desktop and contemporary store apps along with essential Linux command-line tools and services on Windows.
You can install and operate other Linux distributions (distros) like Ubuntu, OpenSuse, SUSE Linux, Fedora, etc. by enabling the Windows Linux subsystem.
Check Windows Version
If you are using a Windows 10 64-bit version, you must first determine whether you are using a suitable version of Windows 10. Only Windows 10 64-bit and Windows Server 2019 are compatible with WSL. If you are not using a suitable version of Windows 10, then you cannot install Linux and enable the Windows Subsystem for Linux.
Step 2: Click on ‘System’. Step 3: Under ‘System and Security’, click on ‘Windows Update’. Step 4: On the left-hand side of the window, under ‘Windows Update Status’, you will see a list of updates that are available for your computer. If you have not installed any recent updates, then there will be a message stating that there are no updates available. If you have installed updates but would like to check for additional updates, then click on the ‘Check for Updates’ button. If you have installed all the available updates for your computer, then the button will state that there are no more updates available and will offer to install them automatically. If you would like to decline any or all of the offered updates, then click on the ‘No Thanks’ button. ..
Step 3: Click on ‘Advanced’. Step 4: Scroll down and click on the ‘Network’ tab. Step 5: Click on the ‘Configure network settings’ button. Step 6: In the Network Settings window, click on the ‘Internet Protocol (TCP/IP)’ tab. Step 7: In the TCP/IP Settings window, click on the ‘Internet Protocol Version 6 (TCP/IPv6)’ tab. Step 8: In the TCP/IPv6 Settings window, click on the ‘Addresses and Ports’ tab.
Step 3: Next, click on the ‘About’ button located in the lower left corner of the left pane. Step 3: Finally, you will be able to view the About section by scrolling down. ..
If you’re using a Windows 10 device, you can see the ‘Version’ and ‘OS build’ of your browser on the About page.
Enable Windows Subsystem for Linux
Windows Subsystem for Linux (WSL) is a Windows feature that allows you to run a full-fledged Linux operating system on your Windows computer. WSL 2 is the most recent and quick version of WSL, offering complete Linux kernel and system call compatibility. A translation layer is run by WSL 1 to connect the Windows kernel with the Linux kernel. ..
To run Windows 10 x64 bit systems, you must be running Windows 10 1903 or higher, with Build 18362 or higher.
Windows 10 is the operating system that is needed to run WSL 1. Windows 10 Version 1709 or higher is needed, with Build 16215 or higher. ..
To use Windows 10’s new Windows Store feature, you must first enable it. To do this, start typing “Turn Windows features on and off” into the Start Menu search box and hit enter.
Step 2: On the ‘Turn Windows features on and off’ control panel, select the ‘Settings’ tab. Step 3: In the ‘Settings’ tab, select the ‘Privacy’ tab. Step 4: In the privacy tab, select the ‘Windows 10 privacy settings’ option. Step 5: On the ‘Windows 10 privacy settings’ option, click on the ‘Change’ button. Step 6: In the new window that opens, enter your desired privacy settings for your computer.
Step 2: Then, tick the box in front of it, and click the ‘OK’ button.
Once the changes are applied, click ‘Restart now’ to restart your computer.
If you want to only install WSL 1, you can now restart your computer and install your Linux distro.
Enable WSL 1 via PowerShell
Set-WSL -Enable $true
Enable WSL 2 via PowerShell
Enable-WindowsFeature -Name VirtualMachinePlatform To enable WSL 2 on Windows 10, open the ‘PowerShell’ command-line tool as an Administrator and run the following additional command. Enable-WindowsFeature -Name WindowsServerCore This first step to enable WSL 2 is enabling the Virtual Machine Platform feature component on Windows. You can also enable WSL 2 via the ‘PowerShell’ command-line tool. To do that, open ‘PowerShell’ as an Administrator and run the following additional command with the WSL 1 command. Enable-WindowsFeature -Name VirtualMachinePlatform To enable WSL 2 on Windows 10, open the ‘PowerShell’ command-line tool as an Administrator and run the following additional command. ..
Final Words
Linux is a Unix-like operating system that is made available under an open-source license. It has a similar feature set to UNIX, and the Linux kernel is a piece of software that handles basic tasks including enabling hardware and software communication.
This command enables the VirtualMachinePlatform feature on the computer and starts the computer in a virtual machine.