command-line-basics Flashcards

1
Q

What is a CLI?

A

A command-line interpreter or command-line processor uses a command-line interface (CLI) to receive commands from a user in the form of lines of text. A command-line interface (CLI) is a text-based user interface (UI) used to run programs, manage computer files and interact with the computer. Command-line interfaces are also called command-line user interfaces, console user interfaces and character user interfaces.

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 aka GUI. However, applications that use a GUI are usually aimed at consumers of technology (end users), not producers of technology (developers). There are certainly many GUI-based applications in wide use by developers. This lesson was authored using a GUI text editor (VS Code)

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 pull up the manuel
cat - view content of a file
ls - make sure you added a file/view the list of files
pwd - show your working directory
echo - give it a string to say back to you
touch - create a file
mkdir - make multiple folders at once, create a new folder
mv - move file or directory somewhere else
rm - remove files
cp - copy

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

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