Skip to content
SRE运维进阶之路SRE运维进阶之路
github icon

查看文件详细属性

author iconClaycalendar icon2022年4月28日category icon
  • Linux
timer icon小于 1 分钟

此页内容
  • stat命令

# 查看文件详细属性

# stat命令

# stat a.go 
  File: a.go
  Size: 63        	Blocks: 0          IO Block: 512    regular file
Device: 2h/2d	Inode: 19140298416386648  Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2018-10-09 12:42:07.978765400 +0800
Modify: 2018-10-09 12:42:07.980763600 +0800
Change: 2018-10-09 12:42:07.982774800 +0800
 Birth: -
1
2
3
4
5
6
7
8
9

访问时间:atime,查看内容
修改时间:mtime,修改内容 改变时间:ctime,文件属性,比如权限 删除时间:dtime,文件被删除的时间

edit icon编辑此页open in new window
上次编辑于: 2022/4/28 07:07:30
贡献者: clay-wangzhi
备案号:冀ICP备2021007336号
Copyright © 2023 Clay