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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值