← ソフトウェアユーザー どのようにLinuxのLSコマンドは、タイムスタンプで2番目の表示を持っている スコア 188 Advertisement ls -lコマンドの厄介なところは、ファイル(08:30のような)の時と分しか表示されないことです。2番目の部分(08:30:44のような)を見るにはどうすればいいのでしょうか?man 1 ls と検索しても何の手がかりも得られません。 linux ls ソース Jimm Chen http://superuser.stackexchange.com/users/74107 Advertisement Advertisement
✓ 解決策が見つかりました スコア 199 2011-11-09 01:02:33 +0000 お使いのバージョンの ls は --time-style オプションをサポートしていますか? サポートしている場合: ls -la --time-style=full-iso blah -rw-r--r-- 1 root root 0 2011-11-08 18:02:08.954092000 -0700 blah ソース matt http://superuser.stackexchange.com/users/74107
スコア 98 2015-10-10 09:13:24 +0000 ls --full-time ls -l --time-style=full-iso は、ls --full-time -a と等しくなります。0x1& 0x1& ソース zhouji http://superuser.stackexchange.com/users/74107
Advertisement --> スコア 39 2015-11-12 00:44:55 +0000 Advertisement OS Xの場合は、一番良さそうなのは ls -l -T 10.10.5 の ls(1) の man ページより: -T -l (小文字の “ell’) オプションと一緒に使用すると、月、日、時、分、秒、年を含むファイルの完全な時刻情報を表示します。 ソース natevw http://superuser.stackexchange.com/users/74107
スコア 20 2014-07-25 21:28:48 +0000 承認された回答の代わりに、"—time-style=full-iso “の出力が詳細すぎる場合は、dateコマンドのようなカスタムフォーマットを使用することができます。ls -l --time-style=+"%b %d %Y %H:%M:%S" blah -rw-rw-r-- 1 root root 0 Feb 03 2014 01:13:01 blah ソース gensec http://superuser.stackexchange.com/users/74107
Advertisement --> スコア 3 2014-11-10 09:50:02 +0000 Advertisement --> man lsの命令については、ls -eを実行するだけで問題ありません。 ソース AsynKc http://superuser.stackexchange.com/users/74107
スコア 1 2015-10-23 10:23:11 +0000 FreeBSDの場合は以下のようになります。ls -la -D %Y-%m-%dT%H:%M:%S ソース AndiDog http://superuser.stackexchange.com/users/74107