lsで時分秒まで表示する

Linuxコマンド

ls -lを実行しても日付しか表示されません、時分秒まで表示したい場合のコマンド。

#ls -l
-rw-r--r-- 1 root root 0 10月 14 19:24 1.txt
-rw-r--r-- 1 root root 0 10月 14 19:24 2.txt
-rw-r--r-- 1 root root 0 10月 14 19:24 3.txt
#ls -l --time-style=+"%Y/%m/%d %H:%M:%S"
-rw-r--r-- 1 root root 0 2016/10/14 19:24:19 1.txt
-rw-r--r-- 1 root root 0 2016/10/14 19:24:19 2.txt
-rw-r--r-- 1 root root 0 2016/10/14 19:24:19 3.txt

これでOK!

関連記事
記事特集