Commands Flashcards

0
Q

hostname

A

My computer’s network name

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

pwd

A

Print working directory

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

mkdir

A

make directory

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

cd

A

change directory

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

ls

A

list directory

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

rmdir

A

remove directory

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

pushd

A

push directory

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

cp

A

copy a file or directory

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

mv

A

move a file or directory

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

less

A

page through a file

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

cat

A

print the whole file

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

xargs

A

execute arguments

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

find

A

find files

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

grep

A

find things inside files

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

man

A

read a manual page

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

apropos

A

find what man page is appropriate

16
Q

env

A

look at your environment

17
Q

echo

A

print some arguments

18
Q

export

A

export/set a new environment variable

19
Q

exit

A

exit the shell

20
Q

sudo

A

DANGER! become super user root DANGER!

21
Q

chmod

A

change permission modifiers

22
Q

chown

A

change ownership

23
Q

popd

A

Pop directory

25
Q

touch

A

Makes empty file

26
Q

$|$

A

The | takes the output from the command on the left, and “pipes” it to the command on the right.

27
Q

$<$

A

The < will take and send the input from the file on the right to the program on the left.

28
Q

$>$

A

The > takes the output of the command on the left, then writes it to the file on the right.

29
Q

$»$

A

The&raquo_space; takes the output of the command on the left, then appends it to the file on the right.

30
Q

*

A

wildcard

31
Q

crtl + d

A

close file

32
Q

-i

A

ignore case with grep