Command Line Basics Flashcards
1
Q
What are the three great virtues of a programmer?
A
- Laziness: The quality that makes you go to great effort to reduce overall energy expenditure. It makes you write labor-saving programs that other people will find useful and document what you wrote so you don’t have to answer so many questions about it.
- Impatience: The anger you feel when the computer is being lazy. This makes you write programs that don’t just react to your needs, but actually anticipate them. Or at least pretend to.
- Hubris: The quality that makes you write (and maintain) programs that other people won’t want to say bad things about.
2
Q
What is a GUI?
A
Graphical User Interface
3
Q
What is a CLI
A
Command Line Interface
4
Q
Terminal: cat
A
Concatenate and print (display) the content of files
5
Q
Terminal: ls
A
list directory
6
Q
Terminal: pwd
A
print working directory
7
Q
Terminal: echo
A
display a line of text
8
Q
Terminal: touch
A
Change file timestamps
the easiest way to create new, empty files. It is also used to change the timestamps (i.e., dates and times of the most recent access and modification) on existing files and directories.
9
Q
Terminal: mkdir
A
make directory
10
Q
Terminal: mv
A
move a file or directory
11
Q
Terminal: rm
A
remove file or directory
12
Q
Terminal: cp
A
copy a file or directory