stat 中文man页面

系统
stat 打印出一个信息节点的内容,它们显示为对人可读的格式的stat(2).

NAME

stat - 打印信息节点(inode)内容  

SYNOPSIS(总览)

stat filename [filenames ... ]  

DESCRIPTION(描述)

stat 打印出一个信息节点的内容,它们显示为对人可读的格式的stat(2).

下面是stat的一个示例输出:

File: ``/''
Size: 1024         Allocated Blocks: 2            Filetype: Directory
Mode: (0755/drwxr-xr-x)         Uid: (    0/    root)  Gid: (    0/  system)
Device:  0,0   Inode: 2         Links: 20   
Access: Wed Jan  8 12:40:16 1986(00000.00:00:01)
Modify: Wed Dec 18 09:32:09 1985(00021.03:08:08)
Change: Wed Dec 18 09:32:09 1985(00021.03:08:08)

DIAGNOSTICS(诊断)

``Can't stat file'' or ``Can't lstat file'' 通常意味着它不存在. ``Can't readlink file'' 暗示符号链接有错误.  

SEE ALSO(另见)

stat(2),ls(1)  

#p#

NAME

stat - display file or filesystem status  

SYNOPSIS

stat [OPTION] FILE...  

DESCRIPTION

Display file or filesystem status.

-f, --filesystem
display filesystem status instead of file status
-c --format=FORMAT
use the specified FORMAT instead of the default
-L, --dereference
follow links
-t, --terse
print the information in terse form
-Z, --context
print security context information for SELinux if available.
--help
display this help and exit
--version
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)
%C
SELinux security context
%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

AUTHOR

Written by Michael Meskes.  

REPORTING BUGS

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

COPYRIGHT

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.  

SEE ALSO

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.

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-25 15:39:42

fcloseall中文man

2011-08-25 15:00:15

cfgetispeed中文man

2011-08-25 09:29:35

udp中文man

2011-08-19 18:35:50

issue中文man

2011-08-25 17:03:51

pclose中文man

2011-08-25 17:40:25

setvbuf中文man

2011-08-23 14:21:16

poweroff中文man

2011-08-24 15:52:59

intro中文man

2011-08-23 13:40:31

2011-08-25 15:54:08

ferror中文man

2011-08-25 14:40:27

basename中文man

2011-08-25 17:24:54

puts中文man

2011-08-24 18:05:31

SHOW中文man

2011-08-25 18:34:55

ungetc中文man

2011-08-23 10:03:40

useradd中文man

2011-08-16 10:42:30

rmmod中文man
点赞
收藏

51CTO技术栈公众号