ls -l 中看到的时间戳是修改时间还是生成时间?

简介:
这个问题困扰我有一段时间了。不过一直没去找过答案,原因是暂时没有使用到这个。
    中午又把Solaris的ls手册翻看了下,发现ls -l中显示的时间戳是最后一次被修改的时间。
    如果文件修改时间在六个月前,那时间戳显示格式仅为本地化的“月 日 年”,六个月内则显示为 月日时间。
    中文utf-8环境的系统中六个月前显示为“2005   1月 23”这样的年月日格式,六个月内则显示为“3月  1日 13:06”这样的月日24小时时间格式。
    原文是这样:
     -l           Lists in long format, giving mode, ACL  indica-
                  tion,  number  of  links, owner, group, size in
                  bytes, and time of last modification  for  each
                  file  (see  above).  If  the  file is a special
                  file, the size field instead contains the major
                  and  minor  device numbers. If the time of last
                  modification is greater than six months ago, it
                  is  shown  in  the format `month date year' for
                  the  POSIX  locale.  When  the  LC_TIME  locale
                  category is not set to the POSIX locale, a dif-
                  ferent format of the time field  can  be  used.
                  Files  modified  within  six months show `month
                  date time'. If the file is a symbolic link, the
                  filename  is  printed  followed by "->" and the

                  path name of the referenced file.



本文转自leipei博客园博客,原文链接:http://www.cnblogs.com/leipei2352/archive/2011/06/02/2068448.html,如需转载请自行联系原作者

目录
相关文章
|
2月前
|
存储 安全 数据管理
Linux文件时间戳:解析时区与修改时间的相互作用
Linux文件时间戳:解析时区与修改时间的相互作用
49 2
|
10月前
qnx下手动修改时间指令
qnx下手动修改时间指令
150 0
|
4月前
|
Unix 定位技术
什么是时间戳?时间戳的获取方式
什么是时间戳?时间戳的获取方式
|
9月前
|
JavaScript 前端开发
时间戳(获取时间戳
时间戳通常是指自某个特定时间(如1970年1月1日00:00:00 UTC)以来的秒数或毫秒数。在JavaScript中,可以使用Date对象来处理时间戳。
|
Unix
遇到的各种时间类型:UTC时间、GMT时间、本地时间、Unix时间戳
每次遇到各种时间傻傻分不清,特意记录一下,给自己提个醒。
223 0
|
存储 Unix Linux
文件的时间戳
文件的时间戳
241 0
|
Linux
date命令计算出系统启动时间
1 date简介 在linux 中date命令有很多用法,本文简单介绍一下 -d 参数的用法。
171 0
|
机器学习/深度学习 Linux 开发工具
Linux - 文件的三种时间之atime、ctime、mtime的区别和简单用法
Linux - 文件的三种时间之atime、ctime、mtime的区别和简单用法
300 0
Linux - 文件的三种时间之atime、ctime、mtime的区别和简单用法
如何更改文件的"修改时间"?
如何更改文件的"修改时间"?
186 0
获取时间戳,几个时间点的时间戳
获取时间戳,几个时间点的时间戳
1401 0