Forrest logo
tool overview
On this page you find all important commands for the CLI tool wsl. If the command you are looking for is missing please ask our AI.

wsl

WSL (Windows Subsystem for Linux) is a command line tool provided by Microsoft that enables users to run a Linux distribution directly within the Windows operating system. It bridges the gap between Windows and Linux, allowing users to utilize Linux-based tools, utilities, and command line interfaces. WSL supports various Linux distributions including Ubuntu, Debian, and Kali Linux. It provides a complete Linux system with access to the Linux command line, file system, and package manager. With WSL, users can compile and run Linux-based applications, use command line utilities like grep and sed, and execute scripts written for Linux. It also allows for seamless interoperation between Windows and Linux processes, enabling access to Windows files from the Linux environment and vice versa. WSL has become popular among developers and system administrators as it provides a convenient way to work with both Windows and Linux tools without the need for virtual machines or dual booting.

List of commands for wsl:

  • wsl:tldr:50a3e wsl: Specify a particular distribution.
    $ wsl --distribution ${distribution} ${shell_command}
    try on your machine
    explain this command
  • wsl:tldr:747b7 wsl: Shut down Windows Subsystem for Linux.
    $ wsl --shutdown
    try on your machine
    explain this command
  • wsl:tldr:8528d wsl: Change the version of wsl used for the specified distribution.
    $ wsl --set-version ${distribution} ${version}
    try on your machine
    explain this command
  • wsl:tldr:a21c4 wsl: List available distributions.
    $ wsl --list
    try on your machine
    explain this command
  • wsl:tldr:b81f4 wsl: Run a Linux command without using a shell.
    $ wsl --exec ${command} ${command_arguments}
    try on your machine
    explain this command
  • wsl:tldr:bb1f5 wsl: Start a Linux shell (in the default distribution).
    $ wsl ${shell_command}
    try on your machine
    explain this command
  • wsl:tldr:e04c0 wsl: Import a distribution from a `.tar` file.
    $ wsl --import ${distribution} ${path\to\install_location} ${path-to-distro_file-tar}
    try on your machine
    explain this command
  • wsl:tldr:f2df8 wsl: Export a distribution to a `.tar` file.
    $ wsl --export ${distribution} ${path\to\distro_file-tar}
    try on your machine
    explain this command
tool overview