OSX Command Line Flashcards

Master common command names used in the OSX command line

1
Q

pwd

A

Print working directory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

cd

A

Change directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

man

A

Manual

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

ls

A

List files in current directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

mkdir

A

Make a new directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

touch

A

Make a new empty file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

cp

A

Copy a file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

mv

A

Move a file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

rm

A

Remove a file or directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

less

A

Print the contents of a file in a scrolling buffer. Also allows user to go backwards with ‘b’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

cd ..

A

Move up one directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

cd - (hyphen key)

A

Return to previous working directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

cd ~

A

Return to home directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

nano

A

Edit plain text files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

cat

A

Print entire contents of text file (i.e. cat stuff.txt)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

more

A

Print the contents of a file, one screen at a time

17
Q

history

A

Show list of most recently used commands

18
Q

find

A

Search for files on system

19
Q

grep

A

Find text within files

20
Q

alias

A

Create command shortcuts