LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 837|回复: 2

关于文件时间存在多种格式的问题

[复制链接]
发表于 2006-11-12 03:19:29 | 显示全部楼层 |阅读模式
文件列表中存在如下多种系统时间,为什么有些只有日期,有些还有时间,不相同,为什么会出现这样的情况?
有没有办法用改为统一的一种格式,这样写shell的时候,会方便一些?请指教,谢谢!

drwxr-xr-x 2 root root     4096 2006-01-19 stardict-21shijishuangxiangcidian-2.4.2
drwxr-xr-x 2 root root     4096 2006-01-17 stardict-21shijishuangyukejicidian-2.4.2
drwxr-xr-x 2 root root     4096 2006-02-07 stardict-anatilim-chinese-uyghur_cn-uy-2.4.2
drwxr-xr-x 2 root root     4096 2006-02-07 stardict-anatilim-chinese-uyghur-uly_cn-uy-2.4.2
drwxr-xr-x 2 root root     4096 2006-02-07 stardict-anatilim-uyghur-chinese-uly_uy-cn-2.4.2
drwxr-xr-x 2 root root     4096 2006-02-07 stardict-anatilim-uyghur-chinese_uy-cn-2.4.2
drwxr-xr-x 2 root root     4096 05-19 12:23 stardict-bcgm-2.4.2
drwxr-xr-x 2 root root     4096 2003-11-13 stardict-cdict-gb-2.4.2
drwxr-xr-x 2 root root     4096 05-27 12:35 stardict-cedict-gb-2.4.2
drwxr-xr-x 2 root root     4096 2006-04-21 stardict-cfdict-2.4.2
drwxr-xr-x 2 root root     4096 2006-02-22 stardict-chenyixiaofoxuechangjiancihui-gb-2.4.2
drwxr-xr-x 2 root root     4096 06-18 17:51 stardict-DrEye4in1-2.4.2
drwxr-xr-x 2 root root     4096 05-19 13:02 stardict-DrEye5in1-2.4.2
drwxr-xr-x 2 root root     4096 05-19 13:09 stardict-DrEye-cj-2.4.2
drwxr-xr-x 2 root root     4096 05-19 13:20 stardict-DrEye-jc-2.4.2
drwxr-xr-x 2 root root     4096 2006-02-22 stardict-eng-ch-eng-buddhist-gb-2.4.2
drwxr-xr-x 2 root root     4096 2005-12-10 stardict-faxiangcidian-2.4.2
drwxr-xr-x 2 root root     4096 2005-11-17 stardict-foguangdacidian-2.4.2
drwxr-xr-x 2 root root     4096 2005-11-17 stardict-foxuedacidian-2.4.2
drwxr-xr-x 2 root root     4096 05-31 11:33 stardict-fundset-2.4.2
发表于 2006-11-12 14:24:12 | 显示全部楼层
ls --full-time
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-12 15:55:16 | 显示全部楼层
果然好用,谢谢楼上!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表