WK1 The command line in use Flashcards

1
Q

GUI

A

A graphical user interface (GUI) is a user interface that uses icons on the screen to manage different tasks on the computer.

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

CLI

A

A command-line interface (CLI) is a text-based user interface that uses commands to interact with the computer.

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

Display

A

One notable difference between these two interfaces is how they appear on the screen. A GUI has graphics and icons, such as the icons on your desktop or taskbar for launching programs. In contrast, a CLI only has text. It looks similar to lines of code.

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

Function

A

These two interfaces also differ in how they function. A GUI is an interface that only allows you to make one request at a time. However, a CLI allows you to make multiple requests at a time.

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

Advantages of a CLI in cybersecurity

A

The choice between using a GUI or CLI is partly based on personal preference, but security analysts should be able to use both interfaces. Using a CLI can provide certain advantages.

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

Efficiency

A

Some prefer the CLI because it can be used more quickly when you know how to manage this interface. For a new user, a GUI might be more efficient because they’re easier for beginners to navigate.

Because a CLI can accept multiple requests at one time, it’s more powerful when you need to perform multiple tasks efficiently. For example, if you had to create multiple new files in your system, you could quickly perform this task in a CLI. If you were using a GUI, this could take much longer, because you have to repeat the same steps for each new file.

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

History file

A

For security analysts, using the Linux CLI is helpful because it records a history file of all the commands and actions in the CLI. If you were using a GUI, your actions are not necessarily saved in a history file.

For example, you might be in a situation where you’re responding to an incident using a playbook. The playbook’s instructions require you to run a series of different commands. If you used a CLI, you’d be able to go back to the history and ensure all of the commands were correctly used. This could be helpful if there were issues using the playbook and you had to review the steps you performed in the command line.

Additionally, if you suspect an attacker has compromised your system, you might be able to trace their actions using the history file.

Key takeaways

GUIs and CLIs are two types of user interfaces that security analysts should be familiar with. There are multiple differences between a GUI and a CLI, including their displays and how they function. When working in cybersecurity, a CLI is often preferred over a GUI because it can handle multiple tasks simultaneously and it includes a history file.

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