lsコマンドでドットから始まるファイル名を表示したい場合のオプションは a です。
いつも忘れるのでメモっておきます。
1 2 3 |
-bash-3.2$ ls -a . build.log .config config.gen config.tar.gz .. config .config.2 .config.old |
aだけでは見づらいので、 l もつけるといいかも
1 2 3 4 5 6 7 8 9 10 11 |
-bash-3.2$ ls -al total 64 drwxr-xr-x 3 root root 4096 May 17 10:32 . drwxr-xr-x 24 root root 4096 May 17 10:16 .. -rw-r--r-- 1 root root 50 May 17 10:32 build.log lrwxrwxrwx 1 root root 34 May 17 10:16 config -> /opt/cross/lib/ct-ng.1.19.0/config -rw-r--r-- 1 root root 12284 May 17 10:22 .config -rw-r--r-- 1 root root 12292 May 17 10:32 .config.2 drwxr-xr-x 2 root root 4096 May 17 10:16 config.gen -rw-r--r-- 1 1000 1000 11630 Jul 19 2012 .config.old -rw-r--r-- 1 root root 3414 Jul 21 2012 config.tar.gz |