Skip to content

Instantly share code, notes, and snippets.

@alejo4373
Created January 25, 2021 23:56
Show Gist options
  • Save alejo4373/455875b5e33010563a41aa19d46cccf0 to your computer and use it in GitHub Desktop.
Save alejo4373/455875b5e33010563a41aa19d46cccf0 to your computer and use it in GitHub Desktop.
Command Description
pwd print working directory
cd .. go to parent directory (aka up)
cd [folder] go into folder
~ your home folder
ls list files and subfolders in current folder
touch [filename] create a new file
mkdir [directory name] make a new directory
rm [filename] remove (delete) a file
rm -r [directory name] remove (recursively) a folder, all files, subfolder, subfiles, etc. Will prompt if trying to remove special files.
mv [filename] [foldername] move a file to a different folder
mv [filename] [new filename] rename a file
code [filename] Open a file with the code editor
code . Opens code editor at current location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment