command-line Flashcards

1
Q

What is a CLI?

A

A command-line interface

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

What is a GUI?

A

A graphical user interface

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- to look up the “manual” of different terminal commands

cat- to print text files and also concatenate them

ls - to see a list of a directories contents

pwd - prints name of current directory we are in

echo - to display text… a console.log of sorts

touch - can create new files and put them in directories

mkdir - makes directories

mv - move(rename) files

rm - removes files/directories

cp - copies files/directories and can rename them

history- prints history of your command-lines

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