Command Line Flashcards

1
Q

What is a CLI?

A

Command line interface - 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 - 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.
man
cat
ls
pwd
echo
touch
mkdir
mv
rm
cp
A

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

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, impatience, and hubris

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