From c5d615e21202d52ae4b6c2535395207531b4d882 Mon Sep 17 00:00:00 2001 From: Alistair Young Date: Wed, 7 Aug 2019 13:19:03 -0500 Subject: [PATCH] wsl: add page (#3230) --- pages/windows/wsl.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/windows/wsl.md diff --git a/pages/windows/wsl.md b/pages/windows/wsl.md new file mode 100644 index 000000000..dbc442daa --- /dev/null +++ b/pages/windows/wsl.md @@ -0,0 +1,32 @@ +# wsl + +> Manage the Windows Subsystem for Linux from the command line. +> More information: . + +- 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`