Amiga Unix — 68040 · 68060

Manual pages › General commands (1)

stat(1)

display file or filesystem status

Package: coreutil, added for amigaux.

Also by this name: stat(2), System calls · stat(5), Character sets, environment, package files · stat(2Z), XENIX system calls · stat(4Z), XENIX version of a file format

stat - display file or filesystem status

stat [OPTION] FILE...

Display file or filesystem status.

display filesystem status instead of file status
use the specified FORMAT instead of the default
follow links
print the information in terse form
display this help and exit
output version information and exit

The valid format sequences for files (without --filesystem):

%A
Access rights in human readable form
%a
Access rights in octal
%B
The size in bytes of each block reported by `%b'
%b
Number of blocks allocated (see %B)
%D
Device number in hex
%d
Device number in decimal
%F
File type
%f
Raw mode in hex
%G
Group name of owner
%g
Group ID of owner
%h
Number of hard links
%i
Inode number
%N
Quoted File name with dereference if symbolic link
%n
File name
%o
IO block size
%s
Total size, in bytes
%T
Minor device type in hex
%t
Major device type in hex
%U
User name of owner
%u
User ID of owner
%X
Time of last access as seconds since Epoch
%x
Time of last access
%Y
Time of last modification as seconds since Epoch
%y
Time of last modification
%Z
Time of last change as seconds since Epoch
%z
Time of last change

Valid format sequences for file systems:

%a
Free blocks available to non-superuser
%b
Total data blocks in file system
%c
Total file nodes in file system
%d
Free file nodes in file system
%f
Free blocks in file system
%i
File System id in hex
%l
Maximum length of filenames
%n
File name
%s
Optimal transfer block size
%T
Type in human readable form
%t
Type in hex

Written by Michael Meskes.

Report bugs to <bug-coreutils@gnu.org>.

Copyright © 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The full documentation for stat is maintained as a Texinfo manual. If the info and stat programs are properly installed at your site, the command

info coreutils stat

should give you access to the complete manual.

March 2004 stat (coreutils) 5.2.1