mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-10 11:29:59 +03:00
wsl: add page (#3230)
This commit is contained in:
parent
6979688bca
commit
c5d615e212
32
pages/windows/wsl.md
Normal file
32
pages/windows/wsl.md
Normal file
@ -0,0 +1,32 @@
|
||||
# wsl
|
||||
|
||||
> Manage the Windows Subsystem for Linux from the command line.
|
||||
> More information: <https://docs.microsoft.com/en-us/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}}`
|
||||
|
||||
- Shut down Windows Subsystem for Linux:
|
||||
|
||||
`wsl --shutdown`
|
Loading…
Reference in New Issue
Block a user