Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Run Linux Commands When Starting Windows Subsystem

Learn how to run Linux commands when starting Windows subsystem with clear steps, practical tips, and troubleshooting advice for a smoother, more.

Table of Contents

This practical guide walks through how to run Linux commands when starting Windows subsystem, explains the main requirements, and highlights common issues that may appear along the way.

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 --verboseand manually turn off all WSL distributions with the command. wsl --shutdown

How to Run Linux Commands When Starting Windows Subsystem

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.

Key Takeaways

Use the information above as a practical reference for how to run Linux commands when starting Windows subsystem. Review each step carefully, confirm any requirements, and choose the option that best fits your situation.

FAQ

What does this guide explain about Run Linux Commands When Starting Windows Subsystem?

It explains the main concepts, practical considerations, and useful steps related to run Linux commands when starting Windows subsystem without requiring advanced knowledge.

Who can benefit from learning about Run Linux Commands When Starting Windows Subsystem?

This information is useful for readers who want a clear overview, practical guidance, and reliable steps related to run Linux commands when starting Windows subsystem.

What should I check before applying this information?

Review the requirements, confirm that your device, software, or situation matches the instructions, and back up important data before making major changes.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.