010-160 010-160 - LPI Linux Essentials Process Management and System Monitoring Questions and Answers 1 — Questions and Answers
Question 1: Which command displays a dynamic, real-time view of running processes on a Linux system?
- top (Correct answer)
- ps
- jobs
- pstree
Correct answer: top
The `top` command provides an interactive, continuously updated display of system processes and resource usage.
Question 2: What signal number is used with `kill` to forcefully terminate a process that cannot be ignored?
- 9 (Correct answer)
- 15
- 1
- 2
Correct answer: 9
Signal 9 (SIGKILL) immediately and forcefully terminates a process and cannot be caught or ignored by the process.
Question 3: Which command lists all currently running processes for all users in a detailed format?
- ps aux (Correct answer)
- ls -la
- jobs -l
- top -a
Correct answer: ps aux
The `ps aux` command shows all processes from all users with detailed information including CPU and memory usage.
Question 4: What does the `nice` command control when starting a process?
- Scheduling priority (Correct answer)
- Memory limit
- CPU affinity
- File permissions
Correct answer: Scheduling priority
The `nice` command launches a process with a specified scheduling priority (niceness value) to influence how much CPU time it receives.
Question 5: Which command sends a process to the background after it has already been started in the foreground?
- bg (Correct answer)
- fg
- jobs
- nohup
Correct answer: bg
After pressing Ctrl+Z to suspend a foreground process, the `bg` command resumes it running in the background.
Question 6: What file in the /proc filesystem contains information about current memory usage?
- /proc/meminfo (Correct answer)
- /proc/cpuinfo
- /proc/memory
- /proc/raminfo
Correct answer: /proc/meminfo
The `/proc/meminfo` file provides detailed statistics about RAM usage, free memory, buffers, and cache on a Linux system.
Which command displays a dynamic, real-time view of running processes on a Linux system?