Command Line Quiz Questions Flashcards
1
Q
What is a CLI?
A
Command Line Interface - processes commands to a computer program in the form of lines of text
2
Q
What is a GUI?
A
Graphical User Interface - system of interactive visual components for computer software
3
Q
Give at least one use case for each of the commands listed in this exercise. man cat ls pwd echo touch mkdir mv rm cp
A
manual concatenate list print working directory echo (like console.log for CLI) touch (creates new file) mkdir (new directory) mv (move or renames) rm (delete) cp (copy)
4
Q
What are the three virtues of a great programmer?
A
- 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.
- 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.
- Hubris: The quality that makes you write (and maintain) programs that other people won’t want to say bad things about.