command-line Flashcards
1
Q
What is a CLI?
A
A command-line interface
2
Q
What is a GUI?
A
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- to look up the “manual” of different terminal commands
cat- to print text files and also concatenate them
ls - to see a list of a directories contents
pwd - prints name of current directory we are in
echo - to display text… a console.log of sorts
touch - can create new files and put them in directories
mkdir - makes directories
mv - move(rename) files
rm - removes files/directories
cp - copies files/directories and can rename them
history- prints history of your command-lines
4
Q
What are the three virtues of a great programmer?
A
Laziness, Impatience, and Hubris