Linux下如何查看
文件秒级修改及访问时间,今天遇到这个问题,搜索一下并记录之。
通过 stat 命令即可。
如Oracle告警日志文件的具体时间信息:
[oracle@smsdbrac2 monitor]$ stat /opt/oracle/admin/smsdb/bdump/alert_smsdb2.log
File: `/opt/oracle/admin/smsdb/bdump/alert_smsdb2.log'
Size: 11732931 Blocks: 22952 IO Block: 4096 regular file
Device: 6802h/26626d Inode: 1212722 Links: 1
Access: (0660/-rw-rw----) Uid: ( 800/ oracle) Gid: ( 800/ dba)
Access: 2008-12-25 23:31:01.000000000 +0800
Modify: 2008-12-25 23:19:44.000000000 +0800
Change: 2008-12-25 23:19:44.000000000 +0800
http://www.eygle.com/archives/2008/12/linux_stat_find_time_detail.html