Unit 1.3 - Intro to Command Line Interface Flashcards

1
Q

What are some advantages of virtualization?

A

Sandboxing
Optimizes use of expensive hardware
Portability/easy restoration of virtual machines

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

What are the 2 main interfaces with operating systems?

A

Command Line Interface - text based
Graphic User Interface - Uses pictures and menus to display commands

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

What command would you use to find which path you’re currently in?

A

pwd

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

What command would you use to list the contents of the current directory?

A

ls

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

What about listing in long format?

A

ls -l

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

What about listing with hidden files?

A

ls -a

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

What is the command for copying files?

A

cp file1 file2

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

What is the command for moving or renaming a file?

A

mv file1 file2

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

What is the command to create an empty file?

A

touch filename

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

What is the command to remove a file?

A

rm filename

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

What is the command to make a directory?

A

mkdir directoryname

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

What is the command to remove a directory?

A

rmdir directoryname

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

What is sudo? Why do we use it?

A

Sudo is the superuser aka root. We use it to be able to run commands as the administrator.

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