Command Line Flashcards
What is a CLI?
Command line interface - processes commands to a computer program in the form of lines of text
What is a GUI?
Graphical user interface - a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, instead of text-based user interfaces, typed command labels or text navigation
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
man - is an interface to the on-line reference manuals
cat - concatenate files and print on the standard output
ls - list directory contents
pwd - print name of current/working directory
echo - display a line of text (console.log for terminal)
touch - change file accessed timestamps, creates empty file if argument does not exist
mkdir - makes directories
mv - move (rename) files
rm - remove files or directories
cp - copy files and directories
What are the three virtues of a great programmer?
Laziness, impatience, and hubris