kernelCommandLinestring空白其他内核命令行参数。 safeModebooleanfalse在“安全模式”中运行 WSL,这会禁用许多功能,应用于恢复处于错误状态的发行版。 仅适用于 Windows 11 和 WSL 版本 0.66.2+。 swap大小Windows 上 25% 的内存大小四舍五入到最接近的 GB要向 WSL 2 VM 添加的交换空间量,0 表示无交换文件。
wsl is not a recognized command if only VirtualMachinePlatform feature is enabled and that is with build 18922. Documentation appears to be missing an installation step for WSL 1. After invoking Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux and rebooting, I can...
用法: wsl.exe [Argument] [Options…] [CommandLine] 运行Linux 二进制文件的参数: 如果未提供命令行,wsl.exe 将启动默认 shell。 --exec, -e <CommandLine> 不使用默认 Linux shell 执行指定的命令。 --shell-type <Type> 使用提供的 shell 类型执行指定的命令。 类型: standard 使用默认 Linux shell 执...
options以逗點分隔的值清單,例如 uid、gid 等,請參閱下方的自動掛接選項空字串自動掛接選項值如下所列,並附加至預設 DrvFs 掛接選項字串。只能指定 DrvFs 特定選項。 自動掛接選項會套用為所有自動掛接磁碟機的掛接選項。 若只要變更特定磁碟機的選項,請改用/etc/fstab檔案。 不支援掛接二進位檔通常會剖析成旗...
进入Setting-->StartUp-->Startup Options 选择Command line,输入bash -cur_console:p 进入Setting-->Startup-->Tasks 选择bash::bash,将指令改为cmd /c "bash" -cur_console:p -new_console:d:%USERPROFILE% 最后,将cmder的目录添加进环境变量Path中,这样通过Win+R,输入cmder就可以快速启动了。
用法: wsl.exe [Argument] [Options...] [CommandLine] 运行Linux 二进制文件的参数: 如果未提供命令行,wsl.exe 将启动默认 shell。 --exec, -e <CommandLine> 在不使用默认 Linux Shell 的情况下执行指定的命令。 -- 按原样传递其余命令行。
>wsl --status 默认分发: Debian 默认版本: 2 当前计算机配置不支持 WSL1。若要使用 WSL1,请启用“Windows Subsystem for Linux”可选组件。 # 更多命令(仅保留常用命令): >wsl --help 用法: wsl.exe [Argument] [Options...] [CommandLine]
Commands just result in the same output aswsl --helpshows. Noting that it does NOT outputInvalid command line option: <options>in first line, but in fact only the usage info as inwsl --help. Docker Desktop with WSL 2 backend startup also fails showing the same output (wsl --help) as...
We also wanted to add command line options for those users who wish to have fine control over their Linux kernel versions inside of WSL.wsl.exe--updateand its options provide that control. Below is a description of the new commands that are availa...
--options <MountOptions>:装载磁盘时,可以包括一些特定于文件系统的选项。 例如,wsl --mount -o "data-ordered"或wsl --mount -o "data=writeback之类的ext4 装载选项。 但是,目前仅支持特定于文件系统的选项。 不支持通用选项,例如ro、rw或noatime。