CLI Flashcards

1
Q

What is a CLI?

A

A command-line interface (CLI) processes commands to a computer program in the form of lines of text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a GUI?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Give at least one use case for each of the commands listed in this exercise.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the three virtues of a great programmer?

A
  • 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly