Basic Commands Flashcards

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

pop directory

A

popd

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

copy a file or directory

A

cp

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

move a file or directory

A

mv

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

page through a file

A

less

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

print the whole file

A

cat

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

execute arguments

A

xargs

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

find files

A

find

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

find things inside files

A

grep

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

read a manual page

A

man

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

find what man page is appropriate

A

apropos

17
Q

look at your environment

A

env

18
Q

print some arguments

A

echo

19
Q

export/set a new environment variable

A

export

20
Q

exit the shell

A

exit

21
Q

DANGER! become super user root DANGER!

A

sudo