command-line-basics Flashcards
What is a CLI?
Command-line interface
What is a GUI?
Graphical user interface
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 - when you want to look up a manual for something (ex: man cat (for cat command))
cat - combine (or concatenate) contents of multiple txt files. You can also use this command to view contents of a file
ls - list contents of current working directory
pwd - print the current working directory
echo - print a string to the terminal or write a string to a new file
touch - create a new file, such as a .txt file. Its intended use was to change the timestamp of a file
mkdir - create a new directory
mv - mv is short for ‘move’ and you can move folders (or directories). You can also rename a directory with this command
rm - to delete a file or remove a directory with the -r option
cp - to copy a file, such as a .txt file
What are the three virtues of a great programmer?
- laziness
- impatience
- hubris