- 论坛徽章:
- 0
|
可以用查看访问时间用函数utime()或者"ls -lu"命令来查看文件最近一次被访问的时间:
# ls -lu
-u 参数用来显示最近一次被访问的时间,而不是最近一次被调整的时间,这个参数不能单独使用,必须和 -t 或者 -l参数结合使用.
下面的例子列示出根目录(/)下的文件最近一次被访问的时间:
#ls -lu
total 18452
-rw-r--r-- -1 root system -- --26 Jun 14 07:52 #UNTITLED#
-rw------- -1 root system ---2128 Jun 14 07:52 .TTauthority
-rw------- -1 root system - --287 Jun 14 07:52 .Xauthority
drwxr-xr-x 11 root system - --512 Jun 19 03:48 .dt
-rwxr-xr-x -1 root system ---3970 Jun 14 07:52 .dtprofile
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12487/showart_129836.html |
|