Useful Commands

Cheatsheet for Git, Linux, and Conda commands

Git

Here is also a great website to learn about git processes.

CommandExplanation
cdSends you to your home directory
cd ..Sends you up to the parent directory
cd directorynameSends you to the specified directory
lsLists all files and directories in your current directory
cat filename.txtOpens the entire file. You cannot scroll so this is good for short files.
less filename.txtOpens the file and allows you scroll through
nano filename.txtOpens the file and allows you to edit
sudo shutdown nowShuts down the computer
sudo reboot nowRestarts the computer

Conda

Last modified July 20, 2026: added git to helpful commands (4fa673c)