Command-line Flashcards

1
Q

What is a CLI?

A

A command-line interface processes commands to a computer program in the form of lines of text. The program which handles the interface is called a command-line interpreter or command-line processor.

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

what is GUI?

A

GUI is a system of interactive visual components for computer software

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 - man to receive detailed documentation about the command in question (manual)
cat - cat is to output the contents of the file
ls - list directory contents
pwd - display path of current working directory
echo - display line of text/string that are passed as an argument
touch - standard command used in UNIX/Linux operating system which is used to create, change and modify timestamps of a file
mkdir - make a directory
mv - rename the file (=move)
rm - remove the file
cp - copy the file

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

https://avdi.codes/the-three-virtues/#:~:text=It’s%20a%20reference%20to%20a,%2C%20impatience%2C%20and%20hubris.%E2%80%9D

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