Command Line Flashcards

1
Q

What is a CLI?

A

Command Line Interface - connect user to interface or operating system

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

What is a GUI?

A

Graphical User Interface - supposed to be simpler and easier to use

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

What does man do?

A

Displays a manual for a command

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

What does cat do?

A

Concatenates files and shows content within a file

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

What does ls do?

A

Lists directory contents

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

What does pwd do?

A

It prints the path of the working directory, starting from the root. It is an absolute path.

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

What does echo do?

A

Displays a line of text. You can also print text to files.

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

What does touch do?

A

Changes file timestamps and creates new files.

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

What does mkdir do?

A

Make directories

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

What does mv do?

A

Move or rename file

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

What does rm do?

A

Remove files or directories

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

What does cp do?

A

Copies files or directories

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

Laziness, Impatience, Hubris

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