Skip to content

Commit

Permalink
Merge pull request #107 from kurahaupo/patch-1
Browse files Browse the repository at this point in the history
Improve man page
  • Loading branch information
masatake committed Oct 3, 2020
2 parents 0a5e3e4 + 5fdadc1 commit 775097b
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions Lsof.8
Original file line number Diff line number Diff line change
Expand Up @@ -1676,13 +1676,25 @@ FAQ (The \fBFAQ\fP section gives its location.)
On Linux this option also prints the state of UNIX domain sockets.
.TP \w'names'u+4
.B \-t
specifies that
.I lsof
should produce terse output with process identifiers only and no header \-
e.g., so that the output may be piped to
.IR kill (1).
produce terse output comprising only process identifiers (without a
header), so that it is easy to use programmatically. e.g.
.nf

# reload anything using old SSL
lsof -t /lib/*/libssl.so.* | xargs -r kill -HUP

# get list of processes and then iterate over them (Bash only)
mapfile -t pids < <(
lsof -wt /var/log/your.log
)
for pid in "${pids[@]}" ; do
your_command -p "$pid"
done

.fi
The
.B \-t
selects the
option implies the
.B \-w
option.
.TP \w'names'u+4
Expand Down Expand Up @@ -1767,7 +1779,7 @@ them when already enabled is acceptable.
.IP
The
.B \-t
option selects the
option implies the
.B \-w
option.
.TP \w'names'u+4
Expand Down

0 comments on commit 775097b

Please sign in to comment.