番禺高端网站建设,网站优化 图片,河南省工程建设监理协会网站,网站悬浮图片代码用途#xff1a;stat命令用于显示文件或文件系统的状态信息#xff0c;来自于coreutils软件包#xff0c;一般系统自带此命令工具#xff0c;它能获取与文件系统及文件相关的许多信息#xff0c;具体用途见stat的功能选项。这些信息包括inode、atime、ctime、mtime、文件stat命令用于显示文件或文件系统的状态信息来自于coreutils软件包一般系统自带此命令工具它能获取与文件系统及文件相关的许多信息具体用途见stat的功能选项。这些信息包括inode、atime、ctime、mtime、文件系统类型、权限、块大小、符号连接等。语法stat [OPTION]... FILE... , 可通过stat --help或man stat获取它的帮助信息功能选项功能选项需要结合-c参数使用如利用stat获取文件的inode信息则使用stat –c%i /filepath/filename可以获得/filepath/filename文件的inode编号。针对文件系统注意:当目标文件是文件系统时需要使用-f选项如利用stat获取文件系统的inode数量则使用stat –f –c%c /filepath/filename可以获得/filepath/filename文件系统的inode数量。%aFree blocks available to non-superuser显示非超级用户的剩余块信息%bTotal data blocks in file system文件系统上的数据块总数%cTotal file nodes in file system文件系统中inode总数%dFree file nodes in file system文件系统中剩余的inode数量%fFree blocks in file system文件系统中剩余的块%CSELinux security context stringSELinux安全内容信息%iFile System ID in hex十六进制的文件系统ID%lMaximum length of filenames文件名的最大长度%nFile name文件名称%sBlock size (for faster transfers)块大小为了更快的传输速度%SFundamental block size (for block counts)最小的块大小%tType in hex十六进制文件系统类型%TType in human readable form人类可阅读的文件系统类型针对文件%aAccess rights in octal八进制文件访问权限%AAccess rights in human readable form适合人类阅读的文件访问权限%bNumber of blocks allocated (see %B)分配的块数量%BThe size in bytes of each block reported by %b块大小%CSELinux security context stringSELinux安全内容信息%dDevice number in decimal十进制设备号%DDevice number in hex十六进制设备号%fRaw mode in hex十六进制显示Raw模式%FFile type获取文件类型%gGroup ID of owner文件所有者的组ID%GGroup name of owner文件所有者的组名称%hNumber of hard links文件的硬连接数量%iInode Number文件的inode号%nFile name文件名称%NQuoted file name with dereference if symbolic links如果是符号链接则显示映射关系%oI/O block sizeI/O块大小%sTotal size, in bytes文件总大小%tMajor device type in hex十六进制的首要设备类型%TMinor device type in hex十六进制的次要设备类型%uUser ID of owner文件所有者的用户ID%UUser name of owner文件所有者的用户名称%xTime of last access文件最后的访问时间人类可阅读%XTime of last access as seconds since Epoch文件最后的访问时间UNIX时间%yTime of last modification文件最后的内容更改时间人类可阅读%YTime of last modification as seconds since Epoch文件最后的内容更改时间UNIX时间%zTime of last change文件最后的改变(除了内容还包括权限信息)时间人类可阅读%ZTime of last change as seconds since Epoch文件最后的改变(除了内容还包括权限信息)时间UNIX时间注意符号链接文件的内容变化不影响mtime和ctime只对目标文件有影响。--end-- 转载于:https://blog.51cto.com/dgd2010/1629945