All future launches should take less than a second. By default, the installed Linux distribution will be Ubuntu. This can be changed using the -d flag. If you run into an issue during the install process, check the installation section of the troubleshooting guide. Once you have installed WSL, you will need to create a user account and password for your newly installed Linux distribution. See the Best practices for setting up a WSL development environment guide to learn more.
We recommend following our Best practices for setting up a WSL development environment guide for a step-by-step walk-through of how to set up a user name and password for your installed Linux distribution s , using basic WSL commands, installing and customizing Windows Terminal, set up for Git version control, code editing and debugging using the VS Code remote server, good practices for file storage, setting up a database, mounting an external drive, setting up GPU acceleration, and more.
Now running wsl npm init from Powershell will run the npm init command in Debian. Learn more in the guide to Basic commands for WSL. For example, wsl --set-version Ubuntu In addition, you can install a specific distro with the WSL command, and here is what you can do. Step 2: Type wsl --list --online and press Enter.
This command can list all the available WSL distros you can install on Windows This is another way to install Windows Subsystem for Linux on Windows This is a slow way and is usually used in Windows Of course, it also applies to Windows Step 1: Type windows features to the search box and click Turn Windows features on or off. Just have a try by following the guide above. Follow Steps Here!
Soft links cannot exist without the original file whereas hard link can still present data. Windows lets you zip the file via command line but it cannot handle tars or bzip. With Unix, you get a native command line utility called tar which can perform zipping and unzipping alone.
It supports a number of zip formats and you can even specify the compression ratio and algorithm while creating the zip. Back in college when I was learning Unix, man command used to be a life-saver to get through practicals. Now, comparing that to Windows help entry, it has always been fuzzy.
Although these manual entries are only for the Unix Commands, nonetheless it is extremely helpful for users coming from Windows. As a beginner, it lets you distinguish functions, aliases, and keywords reserved in Unix.
You just have to suffix the command with type keyword and it tells you the location of the file or alias. The type command also allows you to append multiple commands and run to get a summarized output. The ps command works the same as tasklist in Windows. It displays the currently running processes by users connected to the system. My frequently used switch with ps command is ps -aux as it tells me the user path running the command with all the memory and CPU consumption.
You can further use the kill command to kill the session by PID. The workaround was through dir command. I used the df command coupled with crontab to send me disk space alerts on my server. Thankfully, df also gives you insights about the windows file system but the naming convention is IFS. Windows never had a good package manager and I had to resort to Chocolatey which was okayish to the max. But now, with the new Windows terminal, it is convenient and efficient to use apt-get.
This also enables you to use all the apt-get command line utilities like ffmpeg, youtube-dl, sox on Windows. My favorite one is ffmpeg which lets me encode video or audio quickly with just a single command.
0コメント