fstat(1): Fix typo
This is from the Advanced UNIX Programming Course (Fall’23) at NTHU.
MFC after: 3 days
Pull Request: https://github.com/freebsd/freebsd-src/pull/929
(cherry picked from commit 0ba51e3b63)
This commit is contained in:
parent
5d12c7fca2
commit
9ce6e243d6
1 changed files with 1 additions and 1 deletions
|
|
@ -312,7 +312,7 @@ $ fstat . | awk 'NR > 1 {printf "%d%s(%s) ", $3, $4, $1;}'
|
|||
2133wd(alice) 2132wd(alice) 1991wd(alice)
|
||||
.Ed
|
||||
.Pp
|
||||
Create a list of processes sorted by number of opened files in desdencing order:
|
||||
Create a list of processes sorted by number of opened files in descending order:
|
||||
.Bd -literal -offset indent
|
||||
$ fstat | awk 'NR > 1 {print $2;}' | sort | uniq -c | sort -r
|
||||
728 firefox
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue