Command line Flashcards

1
Q

What is a CLI?

A

A command-line interface (CLI) processes commands to a computer program in the form of lines of text.

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

What is GUI?

A

The graphical user interface (GUI /ˌdʒiːjuːˈaɪ/ JEE-yoo-EYE[1][Note 1] or /ˈɡuːi/[2] GOO-ee) is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, instead of text-based user interfaces, typed command labels or text navigation.

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

man

A

opens the manual

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

cat

A

prints the content of a file, and concatenate the files into one file.

cat laziness.txt impatience.txt hubris.txt > three-virtues.txt

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

ls

A

To see the list of files or folders

  • a all the files
  • F
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

pwd

A
  1. path to Print working directory

2. add a new file to the current working directory

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

echo

A

Add content to the file(could be new).

echo ‘Hello, World!’ > hello.txt

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

touch

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

What are the three virtues of a great 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.

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

mv

A

Move or rename

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

mkdir

A

creates new directory

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

rm

A

removes file or directory

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

cp

A

copy

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

what are the three 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.

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