fstat
system managementBSD/Unix
The fstat command is one of the most frequently used commands in Linux/Unix-like operating systems. fstat Display status information about open files
Quick Reference
Command Name:
fstat
Category:
system management
Platform:
BSD/Unix
Basic Usage:
fstat [options] [arguments]
Common Use Cases
Syntax
fstat [-f filename] [-M core] [-N system] [-p pid] [-u user] [file ...]
Options
Option | Description |
---|---|
-f filename |
Show only files with the specified filename |
-M core |
Extract values from the specified core file |
-N system |
Extract name list from the specified system file |
-p pid |
Show only files opened by the specified process ID |
-u user |
Show only files opened by the specified user |
file |
Show only processes that have the specified file open |
Examples
How to Use These Examples
The examples below show common ways to use the fstat
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
fstat