OSX Command Line Flashcards
Master common command names used in the OSX command line
1
Q
pwd
A
Print working directory.
2
Q
cd
A
Change directory
3
Q
man
A
Manual
4
Q
ls
A
List files in current directory
5
Q
mkdir
A
Make a new directory
6
Q
touch
A
Make a new empty file
7
Q
cp
A
Copy a file
8
Q
mv
A
Move a file
9
Q
rm
A
Remove a file or directory
10
Q
less
A
Print the contents of a file in a scrolling buffer. Also allows user to go backwards with ‘b’.
11
Q
cd ..
A
Move up one directory
12
Q
cd - (hyphen key)
A
Return to previous working directory
13
Q
cd ~
A
Return to home directory
14
Q
nano
A
Edit plain text files
15
Q
cat
A
Print entire contents of text file (i.e. cat stuff.txt)