Command Line Basics Flashcards
1
Q
What are the three great virtues of a 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.
2
Q
Name at least one use case for each of these commands:
cat, ls, pwd, echo, touch, mkdir, mv, rm, cp
A
cat: to print contents of a file to the terminal.
ls: list the contents of the current working directory.
pwd: prints the current working directory.
echo: prints a string to the terminal or writes it to a file.
touch: creates a new file.
mkdir: creates a new directory.
mv: rename a file or directory.
rm: remove a file or directory.
cp: copies a file or directory.
3
Q
What is a GUI?
A
Graphical User Interface
4
Q
What is a CLI?
A
Command Line Interface