Command Line Basics Flashcards

1
Q

pwd

A

print working directory

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

hostname

A

my computer’s network name

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

mkdir

A

make directory

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

cd

A

change directory

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

ls

A

list 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

pushd

A

push directory

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

popd

A

pop directory

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

cp

A

copy a file or directory

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

mv

A

move a file or directory

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

less

A

page through a file

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

cat

A

print the whole file

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

xargs

A

execute arguments

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

find

A

find files

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

grep

A

find things inside files

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

man

A

read a manual page

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

apropos

A

find what man page is approxiamate

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

env

A

look at your environment

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

echo

A

print some arguments

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

export

A

export/set a new environment

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

exit

A

exit the shell

22
Q

sudo

A

DANGER! become super user root DANGER!

23
Q

chmod

A

change permission modifiers

24
Q

chown

A

change ownership

25
Q

Reverse!

print working directory

A

pwd

26
Q

Reverse!

my computer’s network name

A

hostname

27
Q

Reverse!

make directory

A

mkdir

28
Q

Reverse!

change directory

A

cd

29
Q

Reverse!

list directory

A

ls

30
Q

Reverse!

remove directory

A

rmdir

31
Q

Reverse!

push directory

A

pushd

32
Q

Reverse!

pop directory

A

popd

33
Q

Reverse!

copy a file or directory

A

cp

34
Q

Reverse!

move a file or directory

A

mv

35
Q

Reverse!

page through a file

A

less

36
Q

Reverse!

print the whole file

A

cat

37
Q

Reverse!

execute arguments

A

xargs

38
Q

Reverse!

find files

A

find

39
Q

Reverse!

find things inside files

A

grep

40
Q

Reverse!

read a manual page

A

man

41
Q

Reverse!

find what man page is approxiamate

A

apropos

42
Q

Reverse!

look at your environment

A

env

43
Q

Reverse!

print some arguments

A

echo

44
Q

Reverse!

export/set a new environment

A

export

45
Q

Reverse!

exit the shell

A

exit

46
Q

Reverse!

DANGER! become super user root DANGER!

A

sudo

47
Q

Reverse!

change permission modifiers

A

chmod

48
Q

Reverse!

change ownership

A

chown

49
Q

Touch

A

Create new empty file

50
Q

Reverse!

Create new empty file

A

Touch