今天在查找用strings命令是忘记要不要首字母要不要大写,于是就用tab键补全,结果列出了stat命令。这个命令的名字让我感动好奇,之前从来没用过。
Display file or filesystem status.
-c --format=FORMAT use the specified FORMAT instead of the default
-L, --dereference follow links
-t, --terse print the information in terse form
--help display this help and exit
--version output version information and exit
%a - Access rights in octal
%b - Number of blocks allocated
%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
%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
File: `java'
Size: 64812 Blocks: 128 IO Block: 4096 Regular File
Device: 811h/2065d Inode: 711 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 1818/ star) Gid: ( 1818/ star)
Access: 2009-01-08 14:05:37.000000000 +0800
Modify: 2005-11-11 04:48:31.000000000 +0800
Change: 2008-08-28 14:26:50.000000000 +0800
















