Terminal & CLI Flashcards

1
Q

What is a CLI?

A

A command line interface —> A command line interpreter or processor uses this to receive commands from a user 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

A graphical user interface —> allows users to interact with electronic devices through graphical icons and audio indicators (instead of text-based UIs)

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

What is the man command?

A

used to see available commands and information related to those commands

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

What is the cat command?

A

used to print contents of file(s) to terminal — originally designed for file concatenation

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

What is the ls command?

A

used to see files stored at a location (-a and -F very useful —> all / fileType)

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

What is the pwd command?

A

Pwd — used to see your current location and the path to it

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

What is the echo command?

A

used to print and write string content (to terminal / file)

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

What is the touch command?

A

Touch — used to create a new file— originally designed to reset edit time stamp

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

What is the mkdir command?

A

used to create a new directory

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

What is the mv command?

A

used to move and rename existing directories

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

What is the rm command?

A

used to remove files and directories (-i very useful for double-checks, -r for directories)

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

What is the cp command?

A

creates a copy of a directory under a new name

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