pavement

Fstat

From FreeBSDwiki
Revision as of 14:03, 15 June 2007 by Jimbo (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

fstat is a command similar to the lsof command Linux users are familiar with. Simply put, it returns a list of all open files and what user context they've been opened in. Handy arguments:

fstat -f /usr/local/etc - only return locked files from the filesystem containing /usr/local/etc/ (/usr, on most systems)
fstat -p qmail-send - only return files locked by the qmail-send process
fstat -u jimbo - only return files locked by the user jimbo

see also: iostat

Personal tools