【发布时间】:2025-11-26 22:10:01
【问题描述】:
在他的开发机器上从商店安装 Linux 和 Ubuntu 子系统时,我可以简单地切换(或启动)到 Ubuntu shell
但默认情况下,Ubuntu shell 在/home/techsupp 文件夹中启动。是否可以强制它在与我使用Ubuntu 命令的文件夹相同的文件夹中启动?
所以在我的例子中我应该在
/mnt/h
谢谢。
我已经尝试过的:
H:\>ubuntu help
Launches or configures a linux distribution.
Usage:
<no args>
- Launches the distro's default behavior. By default, this launches your default shell.
run <command line>
- Run the given command line in that distro, using the default configuration.
- Everything after `run ` is passed to the linux LaunchProcess call.
config [setting [value]]
- Configure certain settings for this distro.
- Settings are any of the following (by default)
- `--default-user <username>`: Set the default user for this distro to <username>
clean
- Uninstalls the distro. The appx remains on your machine. This can be
useful for "factory resetting" your instance. This removes the linux
filesystem from the disk, but not the app from your PC, so you don't
need to redownload the entire tar.gz again.
help
- Print this usage message.
我也在 uservoice 上发现了这个请求:https://wpdev.uservoice.com/forums/266908-command-prompt-console-windows-subsystem-for-l/suggestions/13421103-let-us-right-click-open-bash-here-from-explorer?tracking_code=8a8bc624c72a8336565fcd6d5737d712
请为它投票。
【问题讨论】:
标签: windows windows-subsystem-for-linux