Command Line Basics Flashcards

1
Q

What is the command apt-get in BASH?

A

used to install programs such as docker, pip, etc.

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

how do you show the current directory in bash?
how do you switch to the root directory?
how do you switch to the home directory?

A

pwd
cd /
cd home

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

Any path that starts with the forward slash / is considered what?

A

the root directory

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

how do you check which username is logged in within the bash and windows command line?

A

whoami

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

In bash how do you switch back to the home directory?

A

cd ~

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

what does adding -v after the mkdir do?

A

it prints an output whenever a folder is created

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

what does –help command do?

A

print all possible command options ie. mkdir –help

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

what does the command ls -l do?

A

it prints what’s in the directory in table form.

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

how do you remove a directory?

A

rmdir

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