A Linux administrator is troubleshooting a performance issue on a database server. They observe high I/O wait times and suspect a specific process, with PID 1234, is responsible for excessive disk reads and writes. The administrator needs to monitor the I/O statistics for only this process, refreshing the data every 5 seconds. Which of the following commands will accomplish this?
The correct command is pidstat -d -p 1234 5. The -d flag is used to report I/O statistics. The -p 1234 flag specifies that pidstat should only monitor the process with the PID 1234. The 5 at the end of the command sets the refresh interval to 5 seconds. The other options are incorrect. iostat provides system-wide or per-device I/O statistics, not per-process statistics. top does not provide the same level of detailed I/O statistics as pidstat -d. The command pidstat -r -t 1234 -i 5 uses incorrect flags for this purpose; -r reports memory usage and -t reports thread-related statistics.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the `-d` flag in `pidstat` do?
Open an interactive chat with Bash
Why is `pidstat` preferred over `iostat` for process-specific I/O monitoring?
Open an interactive chat with Bash
How does the `-p` flag in `pidstat` work?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access