JavaScript Command Line Basics Flashcards

1
Q

What are the 3 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’s a GUI?

A

Graphical User Interface

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

What’s a CLI?

A

Command Line Interface

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

What does the “cat” command do?

A

Concatenate and print (display) the content of files

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

What does the “ls” command do?

A

List Directory / display files of current directory

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

What does the “pwd” do?

A

Print Working Directory

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

What does the “echo” do?

A

Display a line of text.

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

What does “touch” do?

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.

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

What does “makedir” do?

A

Make a directory.

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

What does “mv” do?

A

Move a file or directory.

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

What does “rm” do?

A

Remove a file.

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

What does “cp” do?

A

Copy a file.

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