Command Line Basics Flashcards

1
Q

What is a CLI?

A

o Command Line Interface

o Where you write text for the computer to process

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

What is a GUI?

A

o Graphical User Interface

o User interface that allows users to interact with devices with graphics instead of commands

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

o man – looking up command information
o cat – printing contents of a file
o ls – seeing a list of files in a directory
o pwd – checking the location of my current directory
o echo – displaying text on terminal
o touch – updating the time stamp on a file
o mkdir – creating new directory(s)
o mv – renaming a directory
o rm – removing a file
o cp – copying a file with a new name

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

o Laziness
o Impatience
o Hubris

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