Show processes using a path
Build a paste-ready command, then review its compatibility and effects before running it.
Complete required fields to copy the generated command.
read-onlyno known side effects Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementslsoflsof must be installed and available on PATH.
Version supportlsof Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsCOMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMERepresentative successful output; values vary with the selected target and system state.
Known errorslsof: command not foundlsof is missing or is not available on PATH.
Verifylsof {{path}}The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01lsofCommandRuns the lsof stage of this one-liner.
02<path>ParameterA value supplied in the Fill parameters section.
Example input
lsof /var/log
Example output
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
nginx 842 root 7r DIR 8,2 4096 393217 /var/log
Illustrative output — exact values vary by system and data.
Official sources