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
5
Q

Push directory

A

pushd

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
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 file or directory

A

mv

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

Page through files

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 manual page

A

man

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

Find what man page is appropriate

A

apropos

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

Look at your environment

A

env

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

Print some arguments

A

echo

20
Q

Export/set new environment variable

A

export

21
Q

Exit shell

A

exit

22
Q

Become super user root

A

sudo

23
Q

sudo

A

Become super user root

24
Q

exit

A

Exit shell

25
Q

export

A

Export/set new environment variable

26
Q

echo

A

Print some arguments

27
Q

env

A

Look at your environment

28
Q

apropos

A

Find what man page is appropriate

29
Q

man

A

Read manual page

30
Q

grep

A

Find things inside files

31
Q

find

A

Find files

32
Q

xargs

A

Execute arguments

33
Q

cat

A

Print the whole file

34
Q

less

A

Page through files

35
Q

mv

A

Move file or directory

36
Q

cp

A

Copy a file or directory

37
Q

popd

A

Pop directory

38
Q

pushd

A

Push directory

39
Q

rmdir

A

Remove directory

40
Q

ls

A

List directory

41
Q

cd

A

Change directory

42
Q

mkdir

A

Make directory

43
Q

hostname

A

My computer’s network name

44
Q

pwd

A

Print working directory

45
Q

How would you find differences between 2 files using the command lines?

A

diff -u file1.html file2.html

46
Q

Who would you reset bash after setting an ENV variable

A

source ~/.bash_profile