1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-31 01:15:35 +02:00
tldr/pages/windows/wsl.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05: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`