Command Line Flashcards

1
Q

What is CLI?

A

Command-line interface
A text-based user interface (UI) used to run programs, manage computer files and interact with the computer.

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

What is GUI?

A

Graphical User Interface
A visual way of interacting with a computer using items such as windows, icons, and menus, used by most modern operating systems.

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

Give at least one use case for ‘man’

A

use to find out more about a command.

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

Give at least one use case for ‘cat’

A

use when you want to find out what’s in a file

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

Give at least one use case for ‘ls’

A

use when you want to see the list of files in a directory. Also use to check if something has been successfully added or removed.

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

Give at least one use case for ‘pwd’

A

use when you want to see what directory you are working on.

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

Give at least one use case for ‘echo’

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

Give at least one use case for ‘touch’

A

make a timestamp for a file and can create a new file

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

Give at least one use case for ‘mkdir’

A

makes a directory, use when you want to make a directory/path

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

Give at least one use case for ‘mv’

A

renames a file, use when you want to rename a file.

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

Give at least one use case for ‘rm’

A

removes a file, use -r to remove a directory

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

Give at least one use case for ‘cp’

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

What are the three virtues of a great programmer?

A

Hard work, Patience and Modesty

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