Command line shortcuts (OSX) Flashcards
1
Q
Go to the home directory
A
cd ~
2
Q
Go up a folder level
A
cd ..
3
Q
Read about a command
A
man
4
Q
Print out current working directory (path / name)
A
pwd
5
Q
Create a new directory
A
mkdir
6
Q
Make a new empty file
A
touch
7
Q
Copy a file
A
cp
8
Q
Move a file
A
mv
9
Q
Remove a file
A
rm
10
Q
Show the contents of a file in a scrolling buffer
A
less
11
Q
My computer’s network name
A
hostname
12
Q
Print out everything in a directory
A
ls
13
Q
Remove a directory
A
rmdir
14
Q
Push directory
A
pushd
15
Q
Pop directory
A
popd
16
Q
Print the whole file
A
cat