Command Line Flashcards

1
Q

What is a CLI?

A

Command line interface is a type of user interface that 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 a GUI?

A

Graphical user interface is a type of user interface that allows users to interact with devices through different mediums such as icons, audio , etc. versus just text.

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

What does the command ‘“man” do?

A

Grabs the user manual for a command.

For example, “man cat” gives us the user manual for the command “cat”.

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

What does command “cat” do?

A

Concatenates and prints contents 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

Lists the contents of a directory.

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

What does the “pwd” command do?

A

Returns the name of the current directory you’re working on.

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

What does the command “echo” do?

A

Logs the arguments given to the output.

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

What does the command “touch” do?

A

Changes the files access & modification times.

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

For the “touch” command, what will happen when the file you want to access isn’t present?

A

It’ll create a new file with the same name by default.

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

What is a shell when it comes to programming?

A

A shell is a command-line interpreter and typical operations performed by shell scripts include file manipulation, program execution, and printing text.

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

What is the bash shell?

A

Bash is the shell, or command language interpreter, for the GNU operating system.

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

What does the “echo” command do?

A

It displays a line of text.

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

What does the command “mkdir” do?

A

It makes directories.

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

What does the command “mv” do?

A

Moves or renames files/directories.

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

What does the command “rm” do?

A

Deletes files/directories.

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

What does the command “cp” do?

A

Copies the source file and then pastes it onto the target file. If the target file is not found, “cp” will create a new one and assign the source’s contents into the new file.