Exams Study Flashcards

1
Q

What is the purpose of the /etc directory in Linux?

A

It contains system configuration files for the operating system and installed applications.

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

What command is used to create a new user in Linux?

A

sudo useradd username

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

What does the chmod 755 command do?

A

It sets permissions:

Owner: Read, Write, Execute

Group & Others: Read, Execute

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

What is the use of the sudo command?

A

It allows a user to execute commands as the superuser or another user with elevated privileges.

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

What is the difference between SSH and Telnet?

A

SSH: Secure and encrypted remote connection.

Telnet: Unencrypted remote connection.

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

List a command to install software on a Debian-based Linux system.

A

sudo apt install package_name

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

What is the kernel in Linux?

A

The kernel is the core of the operating system, managing hardware resources and system processes.

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

What does PAM stands for in Linux?

A

Pluggable Authentication Modules.

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

What command lists all files, including hidden ones, in a directory?

A

ls -a

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

What is the purpose of the /boot directory?

A

It contains bootloader files and the Linux kernel needed for system startup.

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

What is the difference between root and user accounts?

A

Root Account: Full system control with all privileges.

User Account: Limited privileges for regular tasks.

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

Which file system is most commonly used in Linux distributions?

A

ext4

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

What is IPtables?

A

A command-line tool in Linux to set up, maintain, and inspect firewall rules.

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

What is a firewall?

A

A network security system that monitors and controls incoming and outgoing traffic based on predetermined security rules.

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

What is the purpose of the /dev directory in Linux?

A

Contains device files representing hardware like disks, terminals, and printers.

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

What is the use of Docker?

A

Docker is a platform that allows developers to build, run, and manage applications inside lightweight, portable containers.

17
Q

What is the kernel?

A

The kernel is the core of the operating system that manages hardware resources and facilitates communication between hardware and software.

18
Q

What is the purpose of the /boot directory in Linux?

A

Contains bootloader files and the Linux kernel necessary for system startup.

19
Q

What is the purpose of the /bin directories in Linux?

A

Contains essential binary files (commands) used by all users, such as ls and cp.

20
Q

What is the use of AppArmor?

A

AppArmor is a Linux security module that enforces restrictions on programs to protect the system from potential vulnerabilities.

21
Q

What is grep?

A

Searches for patters using regular expression.

22
Q

What is egrep?

A

Extended grep, supports extended regular expressions.

23
Q

What is fgrep?

A

Fixed grep, searches for literate strings only.

24
Q

Explain Physical File System.

A

Refers to actual storage devices

25
Q

Explain Logical File Systems.

A

How files and directories are structured.

26
Q

Explain Virtual File System.

A

Abstraction layers that unifies access to multiple file systems.

27
Q

What are 3 types of permissions in Linux?

A

Read (r) : View file contents
Write (w) : Modify file contents
Execute (x) : Run the file