2025-03-14 21:59:59 -06:00
|
|
|
# wsl
|
|
|
|
|
|
|
|
|
|
> Verwalte das Windows Subsystem für Linux von der Kommandozeile.
|
|
|
|
|
> Weitere Informationen: <https://learn.microsoft.com/windows/wsl/reference>.
|
|
|
|
|
|
|
|
|
|
- Starte eine Linux-Shell (in der Standard-Distribution):
|
|
|
|
|
|
|
|
|
|
`wsl {{shell_befehl}}`
|
|
|
|
|
|
|
|
|
|
- Führe einen Linux-Befehl aus, ohne eine Shell zu benutzen:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`wsl {{[-e|--exec]}} {{befehl}} {{befehl_argumente}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Gib eine bestimmte Distribution an:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`wsl {{[-d|--distribution]}} {{distribution}} {{shell_befehl}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Liste verfügbare Distributionen auf:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`wsl {{[-l|--list]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Exportiere eine Distribution in eine `.tar` Datei:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`wsl --export {{distribution}} {{pfad\zu\datei.tar}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Importiere eine Distribution von einer `.tar` Datei:
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`wsl --import {{distribution}} {{pfad\zu\installations_verzeichnis}} {{pfad\zu\datei.tar}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Ändere die WSL-Version einer bestimmten Distribution:
|
|
|
|
|
|
|
|
|
|
`wsl --set-version {{distribution}} {{version}}`
|
|
|
|
|
|
|
|
|
|
- Fahre das Windows Subsystem für Linux herunter:
|
|
|
|
|
|
|
|
|
|
`wsl --shutdown`
|