Command Line Flashcards

1
Q

What is a CLI?

A

Stands for command-line interfaces. CLI processes commands to a computer program in the form of lines of text. The program which handles the interface is called a command-line interpreter or command-line processor.

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

What is a GUI?

A

Stands for graphical user interface. GUI is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, instead of text-based user interfaces, typed command labels or text navigation.

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

Systems manual pager. Documentation/manual page for commands

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

Concatenate files and print on the standard output

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

List information about the FILEs (and the current directory by default)

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

Print the full filename of current working 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 echo.

A

Echo the STRING(s) to standard output…. Display a line of text

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

Change file timestamps/ update the access and modification times of each FILE to the current time.

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

Make directories (if they do not already exist)

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

Move (or rename) files

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

Remove files or directories (by default, does not remove directories)

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

Copy files and 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
  1. Laziness: The quality that makes you go to great effort to reduce overall energy expenditure. It makes you write labor-saving programs that other people will find useful and document what you wrote so you don’t have to answer so many questions about it.
  2. Impatience: The anger you feel when the computer is being lazy. This makes you write programs that don’t just react to your needs, but actually anticipate them. Or at least pretend to.
  3. Hubris: The quality that makes you write (and maintain) programs that other people won’t want to say bad things about.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly