Command Line Basics Flashcards
1
Q
What is a CLI?
A
command-line interface
2
Q
What is a GUI?
A
graphical user interface
3
Q
What are the three virtues of a great programmer?
A
laziness, impatience, hubris
- 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.
4
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
man: reference manual
cat: concatenate files and print to terminal/ create file with content
ls: list current directory
pwd: print current working directory
echo: display line of text
touch: change file timestamps/ create file with no content
mkdir: make directories/ folders
mv: move/rename files
rm: remove files or directories
cp: copy files and directories