WSL is now able to run Linux commands on startup

Functionality is currently offered as part of the latest WSL preview build

When you purchase through links on our site, we may earn an affiliate commission.Here’s how it works.

Open-source fans now have the ability to runLinuxcommands automatically when aWindows Subsystem for Linux (WSL)distribution boots.

This ability to run commands on startup is an interesting development that will make WSL appeal to Linux administrators and other power users. Many proficient Linux users usually use this ability to execute scripts to automatically set up their environment upon boot.

The feature is part of the latestWindows 10Insider Preview build 21286 that is currently available to download in the Dev channel now.

Other improvements

Other improvements

The commands can be specified in the/etc/wsl.conffile inside any WSL distro, wrote Windows Insider Program senior program manager Brandon LeBlanc while describing the feature.

He also demonstrated the feature by issuing a command inside a distro that logs the time and date whenever that particular WSL distro boots up.

Besides the WSL feature, the latest build also improves several other aspects of theoperating system.

One of the highlights of the release is its ability todisplay news and interestsin the taskbar. Its content can be personalized and is updated regularly. LeBlanc shared that in the near future users will also be able to access the news and interests in other places, such as withinMicrosoftEdge.

Are you a pro? Subscribe to our newsletter

Are you a pro? Subscribe to our newsletter

Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!

The build also enhances the user’s experience with storage devices by allowing them to create and manage Storage Spaces from within the Settings app. Similarly, the build also improves the user experience in switching time zones.

Furthermore, in a bid to improve the file system utilities in Windows, the build introduces a new command line tool for reporting disk space usage. The tool calledDiskUsage, among other things, can be used to identify large files and directories.

Via:Bleeping Computer

With almost two decades of writing and reporting on Linux, Mayank Sharma would like everyone to think he’sTechRadar Pro’sexpert on the topic. Of course, he’s just as interested in other computing topics, particularly cybersecurity, cloud, containers, and coding.

7 myths about email security everyone should stop believing

Best Usenet client of 2024

I’ve been covering Apple Watch deals for years – This is the one model most people should buy on Black Friday