Microsoft Launched Windows Subsystem for Linux (WSL) a few years back. So now when you are on a Windows 10 laptop, you also have full access to a Linux terminal on your Windows laptop! It's easy to install and fully compatible with Windows software, even File Explorer. Follow the very detailed blog by Michael Treat.
https://github.com/michaeltreat/Windows-Subsystem-For-Linux-Setup-Guide
-
You can also open Ubuntu text files with the built-in Notepad.
Linux cheatsheet
https://www.cheatography.com/davechild/cheat-sheets/linux-command-line/pdf/
https://www.hostinger.com/tutorials/how-to-install-and-use-nano-text-editor
-
Install nano (you may need your password)
sudo apt-get install nano -
To create a newfile and start typing
nano newfile.txtENTER key -
To edit existing file
nano myfile.txtENTER key -
Control+s (save), Control+x (exit)
-
Linux command, delete folder and all items inside without yes/no prompts.
- When you try to delete a folder with many items inside using
rm mydir, it will respond with a "yes/no" prompt for each item. This is a pain. Here's how to delete the whole folder without any prompts.
rm -rf mydir# rf stands for recursive force.
- When you try to delete a folder with many items inside using
-
Linux command, create alias for C:\mywork folder and save to a permanent bash resource startup file.
To make the alias persistent you need to declare it in the~/.bash_profileor~/.bashrc.- Open the ~/.bashrc in your text editor nano:
nano ~/.bashrc
# alias alias_name="command_to_run"
Examples:
alias mywork="cd /mnt/c/mywork"# typing "mywork" changes directory to c:/mywork.
alias pythonwk="/mnt/c/pythonwk"# typing "cd pythonwk" changes directory to c:/pythonwk.
- Open the ~/.bashrc in your text editor nano:
Starting Jupyter Notebook from Ubuntu without Firefox, copy URL to Chrome installed on Windows side.
-
In case Github renderer for Jupyter Notebook fails, copy URL to nbviewer online to show the notebook.
https://nbviewer.jupyter.org/
https://nbviewer.jupyter.org/github/WomensCodingCircle/getting-started/blob/master/WSL-Ubuntu/matplotlib-2d-only.ipynb
https://nbviewer.jupyter.org/github/WomensCodingCircle/getting-started/blob/master/WSL-Ubuntu/matplotlib-3d-projection-v3.ipynb
- Updates to VS Code makes it easier to work with Jupyter Notebooks.
- On a Windows machine, Right-Click .ipynb file, then select "Open In... VS Code"
- Linke to download VS Code: https://code.visualstudio.com/download
- You get fully interactive Jupyter notebook that look just like the in-browser app.


