Marques Brownlee is a RHEL Sysadmin at IBM.
His RHEL Server: RHEL_Server_032
His username: firstname.lastname@example.org
His professional standard: A competent RHEL Sysadmin should NEVER run Linux commands as the root user.
His task: Verify the integrity and availability of key processes
IBM has just given Marques a massive assignment: generate all of the in-house LFCS training material for IBM employees. In 7 weeks, the first class of LFCS candidates will class up at IBM's main headquaters. Today, Marques is building the lesson material for this LFCS exam objective: Verify the integrity and availability of key processes.
Please generate and explain several commands that Marques can run on his RHEL system to demonstrate verifying the integrity and availability of key processes on a RHEL system to his students.
To help Marques build the lesson material for the LFCS exam objective of verifying the integrity and availability of key processes on a RHEL system, here are several commands that he can run to demonstrate these concepts:
Listing Running Processes:
- Explanation: This command lists all currently running processes on the RHEL system. The
-eoption selects all processes, and the
-foption provides full details of each process, including the process ID (PID), parent process ID (PPID), and other information.
Checking Process Status:
systemctl status process-name
- Explanation: This command checks the status of a specific process, identified by
process-name. It displays detailed information about the process, including whether it is running, stopped, or in an error state. Replace
process-namewith the actual name of the process you want to check.
Verifying Process Availability:
- Explanation: This command verifies the availability of a specific process by searching for its process ID (PID). If the process is running, it returns the PID; otherwise, it produces no output. Replace
process-namewith the name of the process you want to verify.
Monitoring System Processes:
- Explanation: This command provides real-time monitoring of system processes. It displays a dynamic view of CPU usage, memory usage, and other vital statistics. Press
qto quit the
Checking Process Open Files:
lsof -p PID
- Explanation: This command lists all the files opened by a specific process, identified by its PID. It provides details such as file descriptors, file types, and paths. Replace
PIDwith the process ID you want to check.
Verifying Process Integrity:
- Explanation: This command generates an MD5 hash of the specified process binary file, allowing verification of its integrity. Replace
/path/to/processwith the actual path to the process binary file.
These commands demonstrate different aspects of verifying the integrity and availability of key processes on a RHEL system. Marques can explain and demonstrate the usage of these commands to his students, ensuring they understand how to monitor and assess the state of processes on a RHEL system as part of their LFCS exam preparation.