How to run Linux commands when starting Windows Subsystem for Linux on Windows 10
Microsoft has just added a new feature for Windows Subsystem for Linux (WSL) on Windows 10. Specifically, WSL users on the latest beta version of Windows can set up Linux commands to automatically run when WSL starts. .
WSL is a compatibility layer designed by Microsoft to help Windows 10 run Linux binaries in native ELF format on Windows computers. In other words, users can run Linux commands right on Windows 10 without having to parallel install and switch between Linux and Windows.
How to run Linux commands when starting Windows Subsystem for Linux on Windows 10
Condition:
- Update the latest Windows 10 beta, Build 21286
- Install WSL
Doing:
- Edit /etc/wsl.conf and add an option titled command below the section titled boot
- Once added to the /etc/wsl.conf file , Linux commands will automatically run when the WSL distributions are started.
- WSL distributions will still run for a few minutes even after the Linux process inside them is closed
- You can check the distributions that are running using the command
wsl --list --verbose
and manually turn off all WSL distributions with the command.wsl --shutdown
If the testing goes well, this feature will soon be released by Microsoft in Windows 10 official release. Expected in 2021, Microsoft will have many updates and upgrades worthwhile for Windows 10 in terms of both interface and features.
Good luck.
You should read it
- 5 Linux commands every sysadmin needs to know
- 14 interesting Linux commands in Terminal
- Guide to network operation for Linux users: 11 commands to know
- 15 Tar commands should try in Linux
- Basic Linux commands everyone needs to know
- How to create dual boot Linux and Windows 10 on Linux
- How to Boot Linux from USB on Windows 10
- How to install Windows Subsystem for Linux 2 on Windows 10
May be interested
- Install CentOS on Windows 10 WSLjoin tipsmake.com to find a simple way to manually install centos on windows 10 subsystem for linux and run commands in rhel's yum or rpm repository.
- 6 Reasons You Should Try Windows Subsystem for Linux (WSL)while windows is popular with casual users due to its ease of use and flexibility, linux has a large market share among professional users.
- Microsoft released a tool to run any version of Linux on Windows 10microsoft has just released a tool for anyone who likes linux using linux kernel versions running on windows subsystem for linux (wsl).
- Running Linux on Windows 10 does not require a virtual machine, here are 18 things you should knowthe windows subsystem for linux (wsl) feature - also called bash, helps programmers run ubuntu directly on windows without the need for a virtual machine. the following article will help readers better understand linux tools - wsl.
- 5 Linux commands every sysadmin needs to knowin a world full of new tools and diverse development environments, learning some basic sysadmin commands is practically essential for any developer or engineer.
- The Linux subsystem on Windows 10 allows malware to hide without being detectedmicrosoft has shown how favorably linux has been for nearly three years and this love ultimately cost them.
- How to install Windows Subsystem for Linux (WSL) on Windows 11windows subsystem for linux (wsl) is a set of tools that allows you to run linux software on your windows pc, and windows 11 is no exception.
- Microsoft will release Linux 'genuine' Linux kernel with Windows 10 WSLmicrosoft will start 'shipping' a built and customized linux kernel (linux kernel), first applied to windows 10 insider builds this summer. it is known that this kernel will act as a backbone of windows subsystem for linux 2.0 or wsl2.
- Linux GUI applications can run on Windows 10on april 21, microsoft announced that linux gui applications can now run on windows 10 using windows subsystem for linux (wsl). using this feature, you can run any possible gui application on linux or run your own applications or test on linux.
- Kali Linux is available on the Windows Store but is flagged by Windows Defenderkali linux is available on windows 10 store for use with windows subsystem for linux, but it cannot bypass windows defender.