nerdexam
CompTIA

LX0-104 · 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. When a device cannot be unmounted because it is busy, the lsof command is used to list open files and the processes holding them, identifying what is preventing the unmount.

Administrative Tasks

Question

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?

Options

  • Adebug
  • Blsof
  • Cnessus
  • Dstrace
  • Etraceroute

How the community answered

(26 responses)
  • B
    88% (23)
  • D
    4% (1)
  • E
    8% (2)

Why each option

When a device cannot be unmounted because it is busy, the `lsof` command is used to list open files and the processes holding them, identifying what is preventing the unmount.

Adebug

`debug` is a general term for troubleshooting, not a specific command to find processes holding open files.

BlsofCorrect

The `lsof` (list open files) command can show which processes have files open on a particular filesystem or device, making it an ideal tool to identify why a device is 'busy' and cannot be unmounted.

Cnessus

`nessus` is a vulnerability scanner, unrelated to identifying processes holding open files on a device.

Dstrace

`strace` traces system calls and signals of a process, not used to find processes holding a device busy.

Etraceroute

`traceroute` maps the path of IP packets across a network, unrelated to local device usage.

Concept tested: Identifying processes using a device

Source: https://man7.org/linux/man-pages/man8/lsof.8.html

Topics

#lsof command#process management#filesystem unmount

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice