Linux Command Line Flashcards

1
Q

mkdir

A

make directory

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

rmdir

A

remove directory

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

touch

A

create a file within a directory

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

rm

A

remove a file

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

mv

A

move or rename files

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

/

A

root directory

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

..

A

go up to parent directory

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

absolute path

A

any path that starts with /

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

whoami

A

remind you of username

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

~

A

starting from the home directory

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

mkdir -p

A

any directories listed after and separated by a forward slash will be nested within one another

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

>

A

capture the output of a command, followed by name of file to write to

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

cat

A

look at the content of a file, concatenate

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

echo

A

prints its arguments back out again

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

?

A

any single character

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

*

A

zero or more characters

17
Q

> >

A

append to, rather than replace

18
Q

less

A

see things in an easier view, press q to quit

19
Q

rm -r

A

delete a directory and all folders inside

20
Q

wc

A

word count

21
Q

|

A

pipe the output from first command as input for second command

22
Q

uniq

A

output uniq lines in the file

23
Q

man

A

see the manual for a command

24
Q

su

A

switch to super user

25
Q

sudo

A

switch and do following command, prevents you from having to remember to exit out of super user once you are done

26
Q

.

A

dot before a file name makes it hidden