Skip to content

Linux Environment

Linux Command Line Environment

If you don't know much about Linux environment, please complete Introduction to the Unix Command Line from Cambridge University.

Install VS Code

Install VS Code from here, please choose the correct platform and architecture, e.g. MacBook with Apple Silicon, you should install the arm64 version instead of x86/64.

Install VS Code Extension

  • Open VS Code, find the Extensions on the left panel.
  • Search for Remote - SSH, and install it. (What is SSH?)

SSH Login using VS Code

  • Click Open Remote Window button at the left corner, select Connect to Host....
  • Click Add New SSH Host, make sure that the host file is saved into a path that you know.
  • Click Linux for your OS. By default, it is saved in $HOME/.ssh/config.
  • Use your password to login through SSH

Password

Use a stronger password for your account (mixture of small/capital letters, numbers, and symbols). See Password.

Use SSH key to login

See SSH key authentication.

Some commonly used commands

You can learn more by searching Linux Shell Scripting on Google. There are lots of tutorials online. For example Introduction to the Unix Command Line from Cambridge University.

Danger

  • rm should be used carefully because there is no Recycle Bin for rm. Please be careful when executing rm *

vim or vi for text editing

See tutorial here, and cheatsheet.