ls指定日期和时间输出格式
来源:互联网 发布:js获取list长度 编辑:程序博客网 时间:2024/05/01 03:21
ls -l --time-style=xxx
xxx:full-iso, long-iso, iso, locale, +FORMAT
xxx:full-iso, long-iso, iso, locale, +FORMAT
=========几种输出格式,默认输出是:locale格式=============
[root^_^fedora16 ~]#
ll --time-style=full-iso
总用量 156
-rw-------. 1 root root 8597 2011-11-25 07:39:11.285878773 +0800 anaconda-ks.cfg
-rw-r--r--. 1 root root 123687 2011-11-25 07:38:48.995157441 +0800 install.log
-rw-r--r--. 1 root root 13075 2011-11-25 07:36:32.083869068 +0800 install.log.syslog
[root^_^fedora16 ~]#
ll --time-style=long-iso
总用量 156
-rw-------. 1 root root 8597 2011-11-25 07:39 anaconda-ks.cfg
-rw-r--r--. 1 root root 123687 2011-11-25 07:38 install.log
-rw-r--r--. 1 root root 13075 2011-11-25 07:36 install.log.syslog
[root^_^fedora16 ~]#
ll --time-style=iso
总用量 156
-rw-------. 1 root root 8597 11-25 07:39 anaconda-ks.cfg
-rw-r--r--. 1 root root 123687 11-25 07:38 install.log
-rw-r--r--. 1 root root 13075 11-25 07:36 install.log.syslog
[root^_^fedora16 ~]#
ll --time-style=locale
总用量 156
-rw-------. 1 root root 8597 11月 25 07:39 anaconda-ks.cfg
-rw-r--r--. 1 root root 123687 11月 25 07:38 install.log
-rw-r--r--. 1 root root 13075 11月 25 07:36 install.log.syslog
======================================
查看linux系统安装时间:
ls --time-style '+%Y/%m/%d %H:%M:%S' -lct /etc/ | tail -1 | awk '{print $6,$7}'
http://m.blog.chinaunix.net/uid-13642598-id-3060448.html
0 0
- ls指定日期和时间输出格式
- linux 中使用ls指定输出时间格式
- javascript两行代码按指定格式输出日期时间
- javascript两行代码按指定格式输出日期时间
- 日期格式输出时间
- iPhone 获取指定格式的时间和日期
- python - 指定日期和时间间隔, 输出结果
- java实现10s时间的输出和日期格式
- 获取当前日期和时间并格式输出
- 时间和日期格式
- 日期和时间格式
- 在不同日期格式下批处理输出自定义格式的日期和时间
- Android 开发之 SimpleDateFormat 类解析&输出指定格式的日期时间字符串
- struts2 输出指定日期格式标签
- 根据指定的格式验证日期时间
- 将日期时间转换为指定格式
- ls 时间格式修改
- SQL格式化输出日期 时间格式
- 月薪3000与月薪30000的文案区别!
- 去掉popupwindow的四周黑线,解决popupwindow四围有空白的问题
- 彩虹表解码hash码的java实现一(暴力破解法)
- 2.2.3 RUNAROUND NUMBERS 循环数
- WPA Supplicant
- ls指定日期和时间输出格式
- 嵌套矩阵之DAG类型
- ajax Access-Control-Allow-Origin跨域问题
- win10常见问题-任务栏消失
- Dwr3访问Web元素的两种方式
- mac下用Netbean下编写一个javaservlet
- SICP中查询系统的实现
- FP-Growth算法
- linux 重定向