Mac Terminal Commands
Mac Terminal Commands
SHORTCUTS Pages 4
Home
Key/Command Description
Terminal Cheatsheet for Mac
( basics )
Ctrl + A Go to the beginning of the line you are currently typing on
Terminal Cheatsheet for Mac ( 基
Ctrl + E Go to the end of the line you are currently typing on 本)
Clone in Desktop
Ctrl + H Same as backspace
CORE COMMANDS
cd Home directory
cd [folder] Change directory
cd ~ Home directory, e.g. ‘cd ~/folder/’
cd / Root of drive
ls Short listing
ls -l Long listing
sudo Run command with the security privileges of the superuser (Super User
[command] DO)
q Exit
COMMAND HISTORY
history n Shows the stuff typed – add a number to limit the last n items
![value] Execute the last command typed that starts with ‘value’
FILE MANAGEMENT
. Current folder
DIRECTORY MANAGEMENT
> [file] Push output to file, keep in mind it will get overwritten
HELP
© 2016 GitHub, Inc. Terms Privacy Security Contact Help Status API Training Shop Blog About