1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.de/windows/wsl.md

37 lines
929 B
Markdown
Raw Normal View History

2021-11-02 16:40:33 +01:00
# wsl
> Verwalte das Windows Subsystem für Linux von der Kommandozeile.
> Weitere Informationen: <https://docs.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:
`wsl --exec {{befehl}} {{befehl_argumente}}`
- Gib eine bestimmte Distribution an:
`wsl --distribution {{distribution}} {{shell_befehl}}`
- Liste verfügbare Distributionen auf:
`wsl --list`
- Exportiere eine Distribution in eine `.tar` Datei:
`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}}`
- Ändere die WSL-Version einer bestimmten Distribution:
`wsl --set-version {{distribution}} {{version}}`
- Fahre das Windows Subsystem für Linux herunter:
`wsl --shutdown`