command-line-basics Flashcards

1
Q

What is a CLI?

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

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 - when you want to look up a manual for something (ex: man cat (for cat command))
cat - combine (or concatenate) contents of multiple txt files. You can also use this command to view contents of a file
ls - list contents of current working directory
pwd - print the current working directory
echo - print a string to the terminal or write a string to a new file
touch - create a new file, such as a .txt file. Its intended use was to change the timestamp of a file
mkdir - create a new directory
mv - mv is short for ‘move’ and you can move folders (or directories). You can also rename a directory with this command
rm - to delete a file or remove a directory with the -r option
cp - to copy a file, such as a .txt 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
  1. laziness
  2. impatience
  3. hubris
How well did you know this?
1
Not at all
2
3
4
5
Perfectly