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
Extensionson the left panel. - Search for
Remote - SSH, and install it. (What is SSH?)
SSH Login using VS Code¶
- Click
Open Remote Windowbutton at the left corner, selectConnect to Host.... - Click
Add New SSH Host, make sure that the host file is saved into a path that you know. - Click
Linuxfor 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¶
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
rmshould be used carefully because there is no Recycle Bin forrm. Please be careful when executingrm *
vim or vi for text editing¶
See tutorial here, and cheatsheet.