![]() You can learn more about multi distro management by checking out the documentation. wsl ( NOTE: In this case you don’t append ‘-c’, you just type in your command).To openor entera folder on the command line, use the cd (change directory) command as follows: pwd /home/seth cd bin pwd /home/seth/bin ls crossfade.sh fop normy.sh. ![]() Even if you’ve configured the distro to have another default shell (take zsh for example), it will still try to launch bash.įor each method, you can append a command that you’d like to execute in the terminal. The cd (change directory) command opens a folder and makes it your new current working directory. Use cd - to navigate to the previous directory or navigate to back. ![]() Use cd or cd to navigate to your home directory. This will attempt to start bash in your default distro. To navigate or move around the file system you will use various cd commands, such as: Use cd / to navigate into the root directory. This will launch into the distro userland with default shell. Using Ubuntu as the example, it’s as simple as calling “ubuntu”. We now have several distros in the store and there might be cases where you wish to launch a distro which is not labeled as your default. Then we’ll exit and change our default distro to SUSE.Īlternatively, you can specify by name the exact distro you want to launch. In the example below, we’ll launch into the default distro (Ubuntu) in the current working directory. You can change the default distro by using the “wslconfig” tool. ensure you can see the Path Bar (Finder > View > Show Path Bar) right click the folder you want to cd to in the Path Bar. open Finder and navigate to the folder you want to cd to. Additionally, it starts the distro in the current working directory where you invoke the command. Found an even easier way with MacOS Ventura 13.0.1. The first (and recommended!) method will start up your default distro. There are a variety of ways to invoke the Windows Subsystem for Linux from Windows commandlines and they all behave a little differently.
0 Comments
Leave a Reply. |