CLI Flashcards
What is a CLI?
A command-line interface (CLI) processes commands to a computer program in the form of lines of text
What is a GUI?
graphical user interface is 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 = man ls displays the manual page for the item (ls)
cat = concatenate files and print on the standard output / ex. cat laziness.txt
ls - list directory contents / ex. ls
pwd - print name of current/working directory / ex pwd
echo - display a line of text / echo ‘Hello, World’
touch - change file timestamps / touch tag-youreit.txt
mkdir - make directories / ex. mkdir parent/
mv - move (rename) files / ex. mv pokiemans pokemon
rm - remove files or directories / ex remove lol.txt
cp - copy files and directories / ex cp and-then.txt no-and-then.txt
What are the three virtues of a great programmer?
- 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.