LINUX ADMINISTRATION Flashcards

1
Q

Block vs File Storage?

A

Block storage manages data in fixed-sized blocks, providing low-level access to storage devices. (LESS STRUCTURED data storage)

File storage, on the other hand, organizes data into files and directories, allowing for higher-level access and management. (MORE STRUCTURED data storage)

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

Please explain the patching process.

A

Patching involves:
identifying vulnerabilities
applying patches to address them
testing to ensure system stability and security

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

Describe a time where you had to troubleshoot a MEMORY issue?

A

I once fixed a server performance issue by identifying and resolving a memory leak in an application, which was causing excessive memory usage and system crashes.

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

Major Difference between Rhel 7 vs Rhel 8?

A

RHEL 8:
-introduced systemd as the default init system
-application streams for managing software versions
-XFS as the default filesystem
-improved security features.

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

Major Difference between Rhel 6 vs Rhel 7?

A

RHEL 7 :
- replaced the init system with systemd
- improved virtualization support with KVM
- introduced XFS as the default filesystem
- enhanced security with SELinux.

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

In Linux, how can you lock a user account?

A

To lock a user account in Linux, you can use the passwd command with the -l option followed by the username. For example, sudo passwd -l username. This disables the account by setting an invalid password hash in the password file.

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

How do you manage users in your environment?

A

We manage users using command-line tools like useradd, usermod, and userdel

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

Describe a time where you had to troubleshoot a PERFORMANCE issue?

A

Website on instances were slow during peak times.

I addressed this by monitoring CPU utilization on Cloudwatch and implementing a scheduled auto scaling solution to add more servers

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

Describe a time where you had to troubleshoot a FILESYSTEM issue?

A

I fixed a disk space exhaustion issue by identifying and cleaning up excessive temporary files, and adjusting filesystem quotas to prevent future incidents.

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

What is umask?

A

umask is a command in Unix and Unix-like operating systems that sets default permissions for newly created files and directories.

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

Where are the kernel modules located?

A

Kernel modules in Linux are located in the /lib/modules directory.

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

How to use NFS to share a directory?

A

To use NFS to share a directory, you need to configure the NFS server by editing the /etc/exports file to specify which directories to share and their permissions. Then, you need to start the NFS service and export the shared directories.

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

In Linux, how many permissions are there?

A

In Linux, there are three types of permissions: read (r), write (w), and execute (x).

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

Tell me the difference between ext4 and xfs file systems?

A

Ext4 is MORE WIDLY USED and has better compatibility with older Linux systems, while XFS is known for its scalability and performance on large storage systems.

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

What is the /proc file system?

A

The /proc filesystem in Linux is a virtual filesystem that provides information about system processes and configurations in a hierarchical structure. It allows access to kernel data structures and parameters as if they were files.

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

Tell me about grep command?

A

The grep command in Linux is used to search for patterns in text files.

16
Q

Tell me about the contents of /usr/local.

A

The /usr/local directory in Linux is typically used for installing software manually, separate from packages managed by the system’s package manager. It often contains user-installed software and libraries.

17
Q

How to stop an ongoing process?

A

To stop an ongoing process in Linux, you can use the kill command followed by the process ID (PID) of the process you want to stop. For example, kill PID or kill -9 PID to forcefully terminate the process.

18
Q

How to calculate the directory size?

A

To calculate the size of a directory in Linux, you can use the du (disk usage) command with the -sh options followed by the directory path. For example, du -sh directory_name.

19
Q

Which command will you use to find the status of a process?

A

To find the status of a process in Linux, you can use the ps command. For example, ps aux will display information about all processes running on the system.

20
Q

How will you check the status of memory?

A

To check the status of memory in Linux, you can use commands like free or vmstat to display memory usage and statistics.

21
Q

How to use the Terminal to find a file?

A

To find a file in Linux using the Terminal, you can use the find command followed by the directory to search and options like -name to specify the filename pattern. For example, find /path/to/directory -name filename.

22
Q

What is a Stateless Linux Server?

A

A stateless Linux server is a server configuration where the operating system does not store any persistent data locally. Instead, all configuration and data are managed externally, typically through network storage or cloud services. This allows for easy scalability and simplified management.

23
Q

Why should we use LINUX?

A

stability
security
flexibility
COST-EFFETIVENESS
large community of users and developers contributing

24
Q

What is a Zombie Process?

A

A Zombie Process is a process that has completed execution but still has an entry in the process table.

25
Q

Explain the concept of Redirection?

A

Redirection is the process of changing the standard input, output, or error streams of a command in Linux.

26
Q

How will you restrict IP so that the restricted IP’s may not use the FTP Server?

A

configuring firewall rules or using TCP wrappers.

For example, you can edit the /etc/hosts.deny file and add an entry like vsftpd: ALL EXCEPT <allowed_IP> to deny access to all IP addresses except the allowed ones.</allowed_IP>

27
Q

What is the advantage of open source?

A

The advantage of open source software is that it allows users to view, modify, and distribute the source code freely.

28
Q

What is Samba? Why is it used?

A

Samba is an open-source software suite that provides file and print services interoperability between Linux/Unix and Windows systems. It allows Linux servers to act as file and print servers for Windows clients, enabling seamless integration of heterogeneous network environments.

29
Q

What does the curl command do in Linux?

A

The curl command in Linux is used to transfer data to or from a server using various protocols such as HTTP, HTTPS, FTP, SCP, etc. It supports a wide range of options for performing various types of data transfers, including downloading and uploading files, sending requests to web services, and testing network connectivity.

30
Q

What are symbolic links?

A

Symbolic links, also known as symlinks or soft links, are special files that point to another file or directory in the filesystem. Unlike hard links, which point directly to the inode of the target file, symbolic links contain the path to the target file, allowing for flexibility and cross-directory linking.

31
Q

What are filenames that are preceded by a dot?

A

Filenames that are preceded by a dot in Linux are typically hidden files or directories.

32
Q

What are daemons?

A

Daemons are background processes that run continuously on a Unix-like operating system, usually initiated at system startup. They perform various tasks such as providing services, managing hardware devices, or monitoring system activities. Examples include web servers (e.g., Apache), database servers (e.g., MySQL), and system services (e.g., syslogd).

33
Q

What are environmental variables?

A

Environmental variables are dynamic values that affect the behavior of processes and programs in the operating system environment. They define various parameters such as system paths, user preferences, and configuration settings, which are used by programs to perform specific tasks or customize their behavior.

34
Q

How do you insert comments in the command line prompt?

A

Comments in the command line prompt in Linux are inserted using the # symbol at the beginning of a line.