Command Line Flashcards

1
Q

What is a CLI?

A

Command Line Interface

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
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
4
Q

In a CLI, what is one use of man?

A

man is the manual command and can be used to access on-board documentation

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

In a CLI, what is one use of cat?

A

cat is the concatenate command and can be used to print the contents of a file or concatenate the contents of multiple files together

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

In a CLI, what is one use of ls?

A

ls is the list command and can be used to list out the files in the current directory

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

In a CLI, what is one use of pwd?

A

pwd is the print working directory command and returns the full path for the directory we are working in.

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

In a CLI, what is one use of echo?

A

echo is similar to print and console.log but not the same and can be used to echo an input string (ex: into a text file)

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

In a CLI, what is one use of touch?

A

touch is a command that can be used to create new files inside directories.

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

In a CLI, what is one use of mkdir?

A

mkdir is the ‘make directory’ command and can be used to make new directories

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

In a CLI, what is one use of mv?

A

mv is the move command and can be used to move (rename) files

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

In a CLI, what is one use of rm?

A

rm is the remove command and can be used to delete files

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

In a CLI, what is one use of cp?

A

cp is the copy command and can be used to copy files

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

In a CLI, what is one use of history?

A

history is the history command and can be used to print command history.

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