LINUX ADMINISTRATION Flashcards
Block vs File Storage?
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)
Please explain the patching process.
Patching involves:
identifying vulnerabilities
applying patches to address them
testing to ensure system stability and security
Describe a time where you had to troubleshoot a MEMORY issue?
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.
Major Difference between Rhel 7 vs Rhel 8?
RHEL 8:
-introduced systemd as the default init system
-application streams for managing software versions
-XFS as the default filesystem
-improved security features.
Major Difference between Rhel 6 vs Rhel 7?
RHEL 7 :
- replaced the init system with systemd
- improved virtualization support with KVM
- introduced XFS as the default filesystem
- enhanced security with SELinux.
In Linux, how can you lock a user account?
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 do you manage users in your environment?
We manage users using command-line tools like useradd, usermod, and userdel
Describe a time where you had to troubleshoot a PERFORMANCE issue?
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
Describe a time where you had to troubleshoot a FILESYSTEM issue?
I fixed a disk space exhaustion issue by identifying and cleaning up excessive temporary files, and adjusting filesystem quotas to prevent future incidents.
What is umask?
umask is a command in Unix and Unix-like operating systems that sets default permissions for newly created files and directories.
Where are the kernel modules located?
Kernel modules in Linux are located in the /lib/modules directory.
How to use NFS to share a directory?
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.
In Linux, how many permissions are there?
In Linux, there are three types of permissions: read (r), write (w), and execute (x).
Tell me the difference between ext4 and xfs file systems?
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.
What is the /proc file system?
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.