Command Line Flashcards

1
Q

What is CLI?

A

Command line interface which is used to process commands to electronic devices via lines of text

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 that allows users to interact with electronic devices through icons/audio as opposed to text

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

Give at least one use case for:

man

A

To find information on command lines for specific system

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

Give at least one use case for:

cat

A

Displaying a file
Concatenating files
Echoing (copy anything that is typed)
Creating a file

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

Give at least one use case for:

ls

A

To view contents of the directory

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

Give at least one use case for:

pwd

A

To show what directory the user is currently on

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

Give at least one use case for:

echo

A

Displays a line of text the user typed

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

Give at least one use case for:

touch

A

Update access and modification of file to current time

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

Give at least one use case for:

mkdir

A

Make directories

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

Give at least one use case for:

mv

A

Moving the source to directory or renaming the source to its destination

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

Give at least one use case for:

rm

A

To remove files or directories

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

Give at least one use case for:

cp

A

Copy files and directories

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

What are the three virtues of a great programmer?

A
  • Laziness
  • Impatience
  • Hubris

or the opposite of this?

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