Command Line Flashcards

1
Q

What is a CLI?

A

A Command-Line Interface.

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

What is a GUI?

A

A Graphical User Interface.

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

Give at least one use case for the command: ‘man’.

A

To get a reference for a command you are unfamiliar with.

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

Give at least one use case for the command: ‘cat’.

A

To quickly view a text file without having to open up a GUI.

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

Give at least one use case for the command: ‘ls’.

A

To view the contents within a folder.

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

Give at least one use case for the command: ‘pwd’.

A

To verify which directory you are in, or the filepath to that directory.

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

Give at least one use case for the command: ‘echo’.

A

To print a message to the console.

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

Give at least one use case for the command: ‘touch’.

A

To create files from the command line

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

Give at least one use case for the command: ‘mkdir’.

A

To create directories from the command line.

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

Give at least one use case for the command: ‘mv’.

A

To rename files or directories.

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

What are the three virtues of a great programmer?

A

Laziness, Impatience, and Hubris.

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