Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Latest commit

 

History

History
76 lines (50 loc) · 1.92 KB

README.md

File metadata and controls

76 lines (50 loc) · 1.92 KB

Linux

Return to top README.md

Shell commands

  • Make a directory: mkdir [directoryname]
  • New file: touch [filename.extension]
  • Check contents of file (?): cat [filepath]

Terminal Shortcuts

  • New terminal tab: ctrl+shift+t
  • New terminal window: ctrl+alt+t
  • Switch to a specific tab: alt+[tab #]
  • Close current tab (or window): ctrl+shift+w
  • Copy: ctrl+shift+c
  • Paste: ctrl+shift+v
  • But how to I highlight text? What to do the equivalent of the Windows ctrl+shift+[arrow]

WSL

Check if your PC can run Hyper-V

Guide

Install Ubuntu in WSL

Go to the Microsoft Store and install Ubuntu 20.04 (or whatever version you want).

From Windows, check what has been installed with

wsl --version
wsl -l -v

1712340010343

Within WSL, update apt with

sudo apt update && sudo apt upgrade

git should already be installed, if not you can install it with

sudo apt-get install git

Check for internet connection

To check if WSL has internet access:

From within WSL run

ping google.com

1712340102477

Terminate the command with ctrl+c

If you do not have internet access, be sure you are on the correct network (via VPN), if needed. Alternativly, you may need to modify the resolv.conf file. This thread describes how to do this. For some reason this gets undone on its own, so you may have to redo this again.

Where is this repo once it is cloned?

Where is this repo in my local? I can get to it from the Ubuntu terminal using cd dev_workflow or cd /home/francisco/dev_workflow In Windows I can find it at \\wsl$\Ubuntu-20.04\home\francisco\dev_workflow