Command Line Flashcards

1
Q

What is a CLI?

A

A Command-Line Interface is a user interface that allows a user to interact with the operating system through text.

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

What is a GUI?

A

A Graphical User Interface is a user interface that allows a user to interact with the operating system through graphical representations (e.g. icons, menus, windows).

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

Give at least one use case for command: man.

A

To view the manual for the man command: man man

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

Give at least one use case for command: cat

A

To create a new file: cat > NewFile.txt

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

Give at least one use case for command: ls

A

To list contents of the current directory: ls

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

Give at least one use case for command: pwd

A

To print the path of the current directory: pwd

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

Give at least one use case for command: echo

A

To print a ‘Hello, World’: echo Hello, World!

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

Give at least one use case for command: touch

A

To update the timestamp on a file to current time: touch File.txt

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

Give at least one use case for command: mkdir

A

To create a new directory in current directory: mkdir ./new

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

Give at least one use case for command: mv

A

Rename files: mv OldName.txt NewName.txt

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

Give at least one use case for command: rm

A

Delete files: rm UnwantedFile.txt

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

Give at least one use case for command: cp

A

Make a copy of a file: cp Original.txt Copy.text

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