path: util-linux_2.41.3-4/lsfd-cmd/lsfd.1.adoc *lslocks*(8), *lsof*(8), *pidof*(1), *proc*(5), *scols-filter*(5), path: util-linux_2.41.3-4/lsfd-cmd/lsfd.1.adoc .... Utilize *pidof*(1) for list the files associated with "firefox": :: .... # lsfd --pid "$(pidof firefox)" path: util-linux_2.41.3-4/lsfd-cmd/lsfd.1.adoc Collect information only for specified processes. _pids_ is a list of pids. A comma or whitespaces can be used as separators. You can use this option with *pidof*(1). See *FILTER EXAMPLES*. + Both *-Q* option with an expression including PID, e.g. -Q (PID == 1), path: util-linux_2.41.3-4/lsfd-cmd/lsfd.1.adoc Utilize *pidof*(1) for list the files associated with "firefox": :: .... # lsfd --pid "$(pidof firefox)" .... path: util-linux_2.41.3-4/misc-utils/uuidd.rc.in ;; status) if pidofproc -p $PIDFILE $DAEMON >/dev/null 2>&1; then echo "$DAEMON is running"; exit 0; path: util-linux_2.41.3-4/sys-utils/unshare.1.adoc .... The *pidof*(1) command prints no output, because the *sleep* processes have been killed. More precisely, when the *sleep* process that has PID 1 in the namespace (i.e., the namespace's init process) was killed, this caused all other processes in the namespace to be killed. By contrast, a similar series of commands where the *--kill-child* option is not used shows that when *unshare* terminates, the processes in the PID namespace are not killed: .... path: util-linux_2.41.3-4/sys-utils/unshare.1.adoc unshare # kill $! # Kill unshare(1) # pidof sleep .... path: util-linux_2.41.3-4/sys-utils/unshare.1.adoc # kill $! # pidof sleep 53482 53480 ....