wsl: add short/long options, fix filepaths (#20719)

Co-authored-by: Darío Hereñú <magallania@gmail.com>
This commit is contained in:
Nelson Figueroa
2026-01-13 07:13:05 +02:00
committed by GitHub
co-authored by Darío Hereñú
parent 6e26e39807
commit 019d7485ba
6 changed files with 29 additions and 29 deletions
+5 -5
View File
@@ -9,23 +9,23 @@
- Führe einen Linux-Befehl aus, ohne eine Shell zu benutzen:
`wsl --exec {{befehl}} {{befehl_argumente}}`
`wsl {{[-e|--exec]}} {{befehl}} {{befehl_argumente}}`
- Gib eine bestimmte Distribution an:
`wsl --distribution {{distribution}} {{shell_befehl}}`
`wsl {{[-d|--distribution]}} {{distribution}} {{shell_befehl}}`
- Liste verfügbare Distributionen auf:
`wsl --list`
`wsl {{[-l|--list]}}`
- Exportiere eine Distribution in eine `.tar` Datei:
`wsl --export {{distribution}} {{pfad/zu/datei.tar}}`
`wsl --export {{distribution}} {{pfad\zu\datei.tar}}`
- Importiere eine Distribution von einer `.tar` Datei:
`wsl --import {{distribution}} {{pfad/zu/installations_verzeichnis}} {{pfad/zu/datei.tar}}`
`wsl --import {{distribution}} {{pfad\zu\installations_verzeichnis}} {{pfad\zu\datei.tar}}`
- Ändere die WSL-Version einer bestimmten Distribution:
+8 -8
View File
@@ -3,23 +3,23 @@
> Administra el Subsistema de Windows para Linux.
> Más información: <https://learn.microsoft.com/windows/wsl/reference>.
- Iniciar un shell de Linux (usando la distribución predeterminada):
- Inicia un intérprete de comandos de Linux (usando la distribución predeterminada):
`wsl {{comando_de_shell}}`
- Ejecutar un comando de Linux sin usar un shell:
- Ejecuta un comando de Linux sin usar un intérprete de comandos:
`wsl --exec {{comando}} {{argumentos_del_comando}}`
`wsl {{[-e|--exec]}} {{comando}} {{argumentos_del_comando}}`
- Especificar una distribución particular:
- Especifica una distribución particular:
`wsl --distribution {{distribución}} {{comando_de_shell}}`
`wsl {{[-d|--distribution]}} {{distribución}} {{comando_de_shell}}`
- Listar las distribuciones disponibles:
- Lista las distribuciones disponibles:
`wsl --list`
`wsl {{[-l|--list]}}`
- Exportar una distribución a un archivo `.tar`:
- Exporta una distribución a un archivo `.tar`:
`wsl --export {{distribución}} {{ruta\a\archivo_de_distribucion.tar}}`
+3 -3
View File
@@ -9,15 +9,15 @@
- 쉘을 사용하지 않고 Linux 명령 실행:
`wsl --exec {{명령어}} {{명령어_인수}}`
`wsl {{[-e|--exec]}} {{명령어}} {{명령어_인수}}`
- 특정 배포판 지정:
`wsl --distribution {{배포판}} {{쉘_명령어}}`
`wsl {{[-d|--distribution]}} {{배포판}} {{쉘_명령어}}`
- 사용 가능한 배포판 나열:
`wsl --list`
`wsl {{[-l|--list]}}`
- 배포판을 `.tar` 파일로 내보내기:
+3 -3
View File
@@ -9,15 +9,15 @@
- ஷெல்லைப் பயன்படுத்தாமல் லினக்ஸ் கட்டளையை இயக்கவும்:
`wsl --exec {{கட்டளை}} {{கட்டளை_வாதங்கள்}}`
`wsl {{[-e|--exec]}} {{கட்டளை}} {{கட்டளை_வாதங்கள்}}`
- குறிப்பிட்ட விநியோகத்தைக் குறிப்பிடவும்:
`wsl --distribution {{விநியோகம்}} {{ஷெல்_கட்டளை}}`
`wsl {{[-d|--distribution]}} {{விநியோகம்}} {{ஷெல்_கட்டளை}}`
- கிடைக்கக்கூடிய விநியோகங்களின் பட்டியல்:
`wsl --list`
`wsl {{[-l|--list]}}`
- விநியோகத்தை `.tar` கோப்பிற்கு ஏற்றுமதி செய்யவும்:
+5 -5
View File
@@ -9,23 +9,23 @@
- 在不使用 Shell 的情况下运行 Linux 命令:
`wsl --exec {{命令}} {{命令参数}}`
`wsl {{[-e|--exec]}} {{命令}} {{命令参数}}`
- 指定特定的发行版:
`wsl --distribution {{发行版}} {{shell_命令}}`
`wsl {{[-d|--distribution]}} {{发行版}} {{shell_命令}}`
- 列出所有可用发行版:
`wsl --list`
`wsl {{[-l|--list]}}`
- 将发行版导出到 `.tar` 文件:
`wsl --export {{发行版}} {{路径/distro_fs.tar}}`
`wsl --export {{发行版}} {{路径\distro_fs.tar}}`
-`.tar` 文件导入发行版:
`wsl --import {{发行版}} {{路径/安装位置}} {{路径/distro_fs.tar}}`
`wsl --import {{发行版}} {{路径\安装位置}} {{路径\distro_fs.tar}}`
- 更改指定发行版的版本:
+5 -5
View File
@@ -9,23 +9,23 @@
- 不使用 shell 執行 Linux 命令:
`wsl --exec {{命令}} {{命令參數}}`
`wsl {{[-e|--exec]}} {{命令}} {{命令參數}}`
- 指定發行版:
`wsl --distribution {{發行版}} {{shell 命令}}`
`wsl {{[-d|--distribution]}} {{發行版}} {{shell 命令}}`
- 列出可用的發行版:
`wsl --list`
`wsl {{[-l|--list]}}`
- 將發行版匯出至 `.tar` 檔:
`wsl --export {{發行版}} {{檔案/完整/distro_fs.tar}}`
`wsl --export {{發行版}} {{檔案\完整\distro_fs.tar}}`
-`.tar` 檔匯入發行版:
`wsl --import {{發行版}} {{檔案/完整/安裝位置}} {{檔案/完整/distro_fs.tar}}`
`wsl --import {{發行版}} {{檔案\完整\安裝位置}} {{檔案\完整\distro_fs.tar}}`
- 變更執行特定發行版的 Windows 子系統 Linux 版本: