Terminal (Linux/macOS) Flashcards

Learn common commands used in macOS Terminal

1
Q

CLI

A

Command Line Interface

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

pwd

A

print working directory

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

hostname

A

my computer’s network name

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

mkdir

A

make directory

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

cd

A

change directory

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

rmdir

A

remove directory

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

ls

A

list directory

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

pushd

A

push directory

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

popd

A

pop directory

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

cp

A

copy

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

mv

A

move

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

less

A

page through a file (c.f. more)

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

cat

A

print the whole file (c.f. type)

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

xargs

A

excute arguments

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

find

A

find files (c.f. dir -r)

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

grep

A

find things inside files (c.f. select-string)

17
Q

man

A

read a manual page (c.f. help)

18
Q

apropos

A

find what manual page is appropriate (c.f. helpctr)

19
Q

env

A

look at your environment

20
Q

echo

A

print some arguments

21
Q

export

A

export/set a new environment variable (c.f. set)

22
Q

exit

A

exit the shell

23
Q

sudo

A

DANGER! become superuser root DANGER! (c.f. runas)

24
Q

chown

A

change file/directory ownership

25
Q

chmod

A

change file/directory permissions

26
Q

touch

A

make an empty file (c.f. New-Item)