command-line-basics Flashcards

1
Q

What is a CLI?

A

Command-line interface

-i.e. GIT

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

-i.e. browser window

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: user manual, view command instructions
cat: concatenating files, prints the files
ls: list segments, lists what’s in your directory(s)
pwd: print working directory, prints the current directory
echo: “echos” what you type, prints a string to the terminal, adds text to a file
touch: create change or modify the timestamp of a file, create a blank file
mkdir: make new directories
mv: move, moves files and folders, renames files
rm: remove, removes files and directories, permanent command
cp: copy, copies individual files or whole directories

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