Bash (Linux/Unix) 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

(add directory to the stack)

don’t go to much into stacks at this point, come back to later

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

popd

A

pop directory

(removed directory from the stack)

don’t go to much into stacks at this point, come back to later

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

cp

A

copy file or directory

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

mv

A

move 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

man

A

read a manual page

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

apropos

A

find which manual page is appropriate

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

env

A

look at your environment

18
Q

echo

A

print some arguments

19
Q

export

A

export/set a new environmental variable

20
Q

exit

A

exit the shell

21
Q

sudo

A

“super user do” runs a command with elevated privileges

22
Q

(reverse card)

print working directory

A

pwd

23
Q

(reverse card)

my computer’s network name

A

hostname

24
Q

(reverse card)

make directory

A

mkdir

25
Q

(reverse card)

change directory

A

cd

26
Q

(reverse card)

list directory

A

ls

27
Q

(reverse card)

remove directory

A

rmdir

28
Q

(reverse card)

push directory

(add directory to the stack)

don’t go to much into stacks at this point, come back to later

A

pushd

29
Q

(reverse card)

pop directory

(removed directory from the stack)

don’t go to much into stacks at this point, come back to later

A

popd

30
Q

(reverse card)

copy file or directory

A

cp

31
Q

(reverse card)

move file or directory

A

mv

32
Q

(reverse card)

page through a file

A

less

33
Q

(reverse card)

print the whole file

A

cat

34
Q

(reverse card)

execute arguments

A

xargs

35
Q

(reverse card)

find files

A

find

36
Q

(reverse card)

read a manual page

A

man

37
Q

(reverse card)

find which manual page is appropriate

A

apropos

38
Q

(reverse card)

look at your environment

A

env

39
Q

(reverse card)

print some arguments

A

echo

40
Q

(reverse card)

export/set a new environmental variable

A

export

41
Q

(reverse card)

exit the shell

A

exit

42
Q

(reverse card)

“super user do” runs a command with elevated privileges

A

sudo