Linux Basic commands Flashcards

1
Q

pwd

A

print current directory

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

cd

A

change directory

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

ls

A

list directories

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

ls -l

A

long list format for ls

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

cat

A

show the content of files

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

clear

A

clears the terminal

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

man “command”

A

the documentation for a given command

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

exit

A

exits you out of a shell

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

enter

A

moves down by one line

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

g

A

go to top of the pag

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

G

A

go to the bottom of the page

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

Environmental Variables

A

have a name and value. Access with echo $VAR_NAME

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

$PATH

A

an env variable that controls the command search path and contains list of directories. This is where the computer goes to look for commands you enter in the terminal

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

which + command

A

tells you where a command lives in your system

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

–help

A

used after a command, tells you more information (maybe)

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

.

A

this directory

17
Q

..

A

parent directory

18
Q

mkdir -p

A

Make a directory. -p adds parents, and you can use / to separate, eg:
1/2/3

19
Q

rmdir -p

A

deletes directories (only if empty)

20
Q

rm -rf

A

recursively removes directories (deletes everything)