Command Line Basics Flashcards

1
Q

What are the three great virtues of a programmer?

A
  1. 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.
  2. 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.
  3. Hubris: The quality that makes you write (and maintain) programs that other people won’t want to say bad things about.
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

  • allows user to interact with the computer using icons
  • directly manipulate items with graphics (click on them)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a CLI?

A

Command Line Interface

-user gives commands to the computer in lines of text

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

man

A

displayed before command you want to know more info about (man ls tells you what ls does and the options)

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

cat

A

combines many files into one, displays file text

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

ls

A

shows the files and directories in chosen directory

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

pwd

A

shows full file path up to current working directory

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

echo

A

prints the words chosen onto terminal (echo ‘hi’ just prints hi onto terminal)

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

touch

A

creates 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.

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

mkdir

A

makes directory

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

mv

A

moves or renames files

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

rf

A

removes files or directories

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

cp

A

copies files or directories

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