1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/windows/wsl.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

36 lines
856 B
Markdown

# wsl
> Manage the Windows Subsystem for Linux from the command-line.
> More information: <https://docs.microsoft.com/windows/wsl/reference>.
- Start a Linux shell (in the default distribution):
`wsl {{shell_command}}`
- Run a Linux command without using a shell:
`wsl --exec {{command}} {{command_arguments}}`
- Specify a particular distribution:
`wsl --distribution {{distribution}} {{shell_command}}`
- List available distributions:
`wsl --list`
- Export a distribution to a `.tar` file:
`wsl --export {{distribution}} {{path/to/distro_fs.tar}}`
- Import a distribution from a `.tar` file:
`wsl --import {{distribution}} {{path/to/install_location}} {{path/to/distro_fs.tar}}`
- Change the version of the specified distribution:
`wsl --set-version {{distribution}} {{version}}`
- Shut down Windows Subsystem for Linux:
`wsl --shutdown`