Usage of Windows Subsystem for Linux

Z MetaCentrum
Skočit na navigaci Skočit na vyhledávání

Windows Subsystem for Linux (WSL) is Linux like virtual environment running in Windows 10.

How to install WSL

You can find many articles which describe installing this feature, e.g. https://www.windowscentral.com/install-windows-subsystem-linux-windows-10.

How to use WSL

Press the Start menu and type the name of Linux distribution which you installed. E.g. type Ubuntu and chose the displayed item.

WSL in the Start menu.png

In the Linux virtual environment you can use most commands and applications in the same way as on native Linux operating system. E.g. you can ssh to any MetaCentrum node:

ssh YOUR_USERNAME@SOME_NODE

Your files stored in Windows disk are mounted in /mnt directory. You can directly copy these files from your computer to a MetaCentrum node, e.g.:

scp /mnt/c/User/tomas123/Documents/data/table.csv tomas123@tarkil.metacentrum.cz:~/test

This command copy file table.csv from folder C:\User\tomas123\Documents\data located on your PC to folder test in your HOME folder on the MetaCentrum frontend tarkil.metacentrum.cz.