可以用查看访问时间用函数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...
by aixcq - AIX文档中心 - 2006-06-19 13:06:54 阅读(1220) 回复(0)
:oops: 怎样查看一个文件的:创建时间,最后修改时间,最后访问时间?如用shell,怎么实现?在线等待........!急!http://expert.csdn.net/Expert/topic/1632/1632076.xml?temp=.8254511
man ls只告诉我以下的信息: -c Uses the time of last modification of the i-node for either sorting (when used with the -t flag) or for displaying (when used with the -l flag). This flag must be used with either the -t or -l flag, or both. 即“最近一次i节点修改时间” -l (Lower case L) Displays the mode, number of links, owner, group, size (in bytes), and time of last modification for each file. I...
如题。 在linux下和在solaris下 用telnet远程访问的时候,想控制某一用户访问时间,或者当空闲超过一定时间,就会自动断开。 具体是哪一个文件呢? 请大侠们赐教! 谢谢!