控制 ls 显示的时间格式

ls -l --time-style '+%Y/%m/%d %H:%M:%S'
total 0
-rw-r--r-- 1 root root 0 2008/08/01 12:23:06 file1
-rw-r--r-- 1 root root 0 2008/08/01 12:23:06 file2
 
--time-style 也能够存在环境变量里:
 
export TIME_STYLE='+%Y/%m/%d %H:%M:%S'
ls -ltotal 0-rw-r--r-- 1 root root 0 2008/08/01 12:23:06 file1-rw-r--r-- 1 root root 0 2008/08/01 12:23:06 file2
相关文章
相关标签/搜索