stat

Section: User Commands (1)
Index Return to Main Contents
 

Name

stat - Report file details in a form more flexible than ls  

Syntax

stat [-name] [-dev] [-ino] [-mode] [-nlink] [-uid] [-gid] [-size] [-atime_dec] [-mtime_dec] [-ctime_dec] [-blocks] [-fmt date_format] [-atime] [-mtime] [-ctime] file...

ustat devno...

 

Description

(options can appear in any order. Output is tab separated)

 

Arguments

filename - a filename, either relative to the current working directory, or fully specified.

 

Options

-name
The name of the file.

-Xtime_dec
Where X is a (access), m (modification) or c (status change) time expressed as a decimal number. This raw format may be useful in scripts when monitoring for a change, or comparing.

-Xtime
As above, but formatted as a data. The default format is YY-mon-DD:hh:mm:ss.

-fmt
overrides the default date format. The format string is in the format given in strftime(3C).

 

Example

$ stat -size -ctime_dec -name stat.c 
2601    830998915       stat.c

$ ustat `stat -dev /var`
1797    Device number
86100   Total blocks available to non-super-user 
60152   Number of free files
        Filsys name
        Filsys pack name 

 

See Also

stat(2), ustat(2), strftime(3C)  

Environment

PATH=$PATH:/home/horton/bin/{HPPA,RISC,sun4m}

MANPATH=$MANPATH:/home/joppa/fastpac/release_2/doc/60.Manuals  

Known Bugs

None  

Author

David Horton - CiTR  

Copyright

Centre for Information Technology Research, 1996


 

Index

Name
Syntax
Description
Arguments
Options
Example
See Also
Environment
Known Bugs
Author
Copyright

This document was created by man2html, using the manual pages.
Time: 23:34:46 GMT, September 27, 2019