LFCS · Question #82
When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?
The correct answer is B. lsof. The lsof command is used to list open files and the processes using them, which is essential for identifying why a device cannot be unmounted because it is busy.
Question
Options
- Adebug
- Blsof
- Cnessus
- Dstrace
- Etraceroute
How the community answered
(45 responses)- A7% (3)
- B87% (39)
- C4% (2)
- E2% (1)
Why each option
The `lsof` command is used to list open files and the processes using them, which is essential for identifying why a device cannot be unmounted because it is busy.
`debug` is a general term for troubleshooting and not a specific command to list open files.
The `lsof` (list open files) command identifies all open files and the processes that currently have them open. When a device cannot be unmounted due to being "busy," `lsof` can pinpoint exactly which process is accessing files or directories on that device, thus preventing its unmount.
`nessus` is a vulnerability scanner, not a tool for checking open files.
`strace` is used to trace system calls and signals, not to list open files.
`traceroute` is used to trace the path of network packets, not to identify processes holding files open.
Concept tested: Identifying processes holding open files
Source: https://man7.org/linux/man-pages/man8/lsof.8.html
Topics
Community Discussion
No community discussion yet for this question.