010-160 010-160 - LPI Linux Essentials Process Management and System Monitoring Questions and Answers 2 — Questions and Answers
Question 1: Which command shows how long the Linux system has been running since its last boot?
- uptime (Correct answer)
- boot
- runtime
- systime
Correct answer: uptime
The `uptime` command displays the current time, how long the system has been running, the number of logged-in users, and load averages.
Question 2: What does the load average represent in the output of the `uptime` command?
- Average number of processes waiting for CPU over 1, 5, and 15 minutes (Correct answer)
- Average CPU temperature over time
- Average disk I/O wait time
- Average network throughput
Correct answer: Average number of processes waiting for CPU over 1, 5, and 15 minutes
Load average reflects the average number of processes in the run queue (waiting for or using CPU) over the past 1, 5, and 15 minutes.
Question 3: Which command can be used to change the priority of an already-running process?
- renice (Correct answer)
- nice
- priority
- chprio
Correct answer: renice
The `renice` command adjusts the scheduling priority (niceness) of a process that is already running, identified by its PID.
Question 4: What keyboard shortcut suspends a foreground process in the terminal?
- Ctrl+Z (Correct answer)
- Ctrl+C
- Ctrl+D
- Ctrl+S
Correct answer: Ctrl+Z
Pressing Ctrl+Z sends the SIGTSTP signal to the foreground process, suspending it and returning control to the shell.
Question 5: Which command lists all background and suspended jobs in the current shell session?
- jobs (Correct answer)
- ps
- bg
- tasks
Correct answer: jobs
The `jobs` command displays all jobs (background and suspended processes) started in the current shell, along with their job IDs and status.
Question 6: What does the `free` command display on a Linux system?
- Physical and swap memory usage (Correct answer)
- Free disk space
- Free inodes on filesystems
- Available CPU cores
Correct answer: Physical and swap memory usage
The `free` command shows the total, used, and available physical RAM and swap space on the system.
Which command shows how long the Linux system has been running since its last boot?