Terminal Commands Flashcards

Memorize basic terminal commands

1
Q

print working directory

A

pwd

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

my computer’s network name

A

hostname

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

make directory

A

mkdir

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

change directory

A

cd

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

list directory

A

ls

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

remove directory

A

rmdir

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

push directory

A

pushd

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

pop directory

A

popd

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

copy a file or directory

A

cp

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

move a file or directory

A

mv

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

page through a file

A

less

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

print the whole file

A

cat

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

execute arguments

A

xargs

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

find files

A

find

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

find things inside files

A

grep

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

read a manual page

A

man

17
Q

find what man page is appropriate

A

apropos

18
Q

look at your environment

A

env

19
Q

print some arguments

A

echo

20
Q

export/set a new environment variable

A

export

21
Q

exit the shell

A

exit

22
Q

DANGER! become super user root DANGER!

A

sudo