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
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 - get the manual of a command
cat - concatenate a file to another file and list contents of file
ls - list contents of directory
pwd - list what directory you’re in
echo - output string to the CLI and/or directory using >
touch - create empty file and/or tell computer that a file has been touched, updating the timestamp.
mkdir - creates a directory
mv - renames the file and/or moves it
rm - removes file
cp - Copies file or directory -r for recursive
4
Q
What are the three virtues of a great programmer?
A
Laziness, Impatience, & Hubris