Windows Subsystem for Linux WSL2 Commands

Windows Subsystem for Linux WSL2 Commands
The ability to run Linux natively in Windows 10 is provided by the WSL feature. WSL stands for Windows Subsystem for Linux, which initially, was limited to Ubuntu only. Modern versions of WSL allow installing and running multiple Linux distros from Microsoft Store.
After enabling WSL, you can install various Linux versions from the Store:
Ubuntu
openSUSE Leap
SUSE Linux Enterprise Server
Kali Linux for WSL
Debian GNU/Linux
and more.
Windows 10 offers two methods to start a WSL distro. For distros installed from the Store, you can use either the console wsl.exe tool, or a Start menu shortcut.
WSL Coomads:
To list installed distributions
wsl -l
wsl --list
To list installed distributions along with its running status and wsl config being 1 or 2
wsl -l --verbose
wsl -l -v
To run a specific distro
wsl -d distro_name
wsl --distribution distro_name
To terminate/shutdown a specific distro
wsl -t distro_name_to_shutdown
wsl --terminate distro_name_to_shutdown
To shutdown all disstros
wsl --shutdown
To EXPORT a running distro as image
wsl --export distro_name_to_export windows_path\tar_file_name.tar
To IMPORT an image as distro
wsl --import new_distro_name install_location_windows_path tar_file_name.tar --version wsl-version-1-or-2
wsl --import Ubuntu-20 D:\VMs\WSL\Ubuntu-20\ Ubuntu-20.04.tar --version 2 # Setting my secondary HDD as storate loc for new distro
🌸 Support channel & make donation :
www.paypal.me/aminenina/10
🌸 Subscribe for more videos :
KZread: / aminosninatos
🌸 Follow me On Social Media
Facebook : / aminosninatos
***********************************************************************
🌸 How To Check Bad Blocks Or Bad Sectors On a Hard Disk In Linux
www.youtube.com/watch?v=jE-I9...
🌸 Linux How To Partition a Hard Drive Using the Parted Command
www.youtube.com/watch?v=2IoEW...
🌸 Checking or Repairing a File System using fsck in Linux
www.youtube.com/watch?v=CcV_M...
🌸 How To Monitor the Health of Your Hard Drive in Linux using SMART
www.youtube.com/watch?v=z1z9R...
🌸 Linux iotop: Monitor your disk Input/Output
www.youtube.com/watch?v=pWG4v...
🌸 How To use the “du” (Disk Usage) Command in Linux
www.youtube.com/watch?v=RA4bM...
🌸 How To View Manipulate System Logs In Linux Using Journalctl Command
• How To View Manipulate...
🌸 How To Sync And Backup Files In Linux Using Rsync Command
• How To Sync And Backup...
🌸 Linux cURL Command Tips and Tricks
• Linux cURL Command Tip...
🌸 Linux tail and multitail commands
• Linux tail and multita...
🌸 Linux How To view Log Files
• Linux How To view Log ...
🌸 How To use the History Command On Linux
• How To use the History...
🌸 Tips and Tricks How To manipulate Text Files on Linux
• Tips and Tricks How To...
🌸 How to Archive, Compress and Extract Files Using the tar Command on Linux
• How to Archive, Compre...
🌸 Linux - How to split larger files into smaller parts
• Linux - How to split l...
🌸 Linux commands : Top
• Linux commands : Top
***********************************************************************
#wsl #linux #windowssubsystem

Пікірлер: 3

  • @youneschroqi649
    @youneschroqi6492 ай бұрын

    Very interesting, thank you, what is the footprint of every distribution on the hard disc? can we do an offline installation? what are all possible distributions that can be installed?

  • @Liv4IT

    @Liv4IT

    2 ай бұрын

    Thank you for your comments but i guess the best way to answer your questions is another video 😅 so keep watching.

  • @Liv4IT

    @Liv4IT

    2 ай бұрын

    Here we go: kzread.info/dash/bejne/pIeZmal6ZMa8d5c.htmlsi=aO2bhoojZBk3CSPt