Skip to content

Instantly share code, notes, and snippets.

@arbianchi
Created May 8, 2017 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arbianchi/83fee3f9c46ec2f3f0f1352185e35948 to your computer and use it in GitHub Desktop.
Save arbianchi/83fee3f9c46ec2f3f0f1352185e35948 to your computer and use it in GitHub Desktop.
Bash / Terminal Commands
These are the basic commands for navigating directories in a Terminal or Git Bash window
Moving in directories
Change Directory
cd
Change to Root Directory
cd ~
Move to One Directory Up
cd ..
View Folders and Files in the Directory
ls
Show the current Directory
pwd
File Manipulations
Make New File
touch [name of file to create]
Make New Folder
mkdir [name of directory to create]
Delete file
rm [name of file to remove]
Delete folder
rm -r [name of directory to remove]
Mac Only
Open file or folder (Mac only)
open [name of file]
Open all files and folder in current directory (Mac only)
open .
PC Only
Open file or folder (PC only)
explorer [name of file]
Open all files and folder in current directory (PC Only)
explorer .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment