控制 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
相關文章
相關標籤/搜索