再帰的にディレクトリのパーミッションを確認したい


初歩的な部分ですが、いざという時にアレって思ったので。
コンテンツをゴリッと移動する際等に、とある配下の全ディレクトリのパーミッションを確認したい場合って、卵を割ったらキミが2つ入ってたっていうくらい、たまにあると思うのです。

bash
$ find ./ -type d | xargs ls -lad
drwxrwxr-x  8 hayatomo hayatomo 4096  1月 22 07:05 2013 ./
drwxrwxr-x  4 hayatomo hayatomo 4096 12月 11 16:56 2013 ./BUILD
drwxr-xr-x 10 hayatomo hayatomo 4096  1月 22 07:24 2013 ./BUILD/nginx-1.2.6
drwxr-xr-x  6 hayatomo hayatomo 4096  1月 22 07:24 2013 ./BUILD/nginx-1.2.6/auto
drwxr-xr-x  2 hayatomo hayatomo 4096  1月 22 07:24 2013 ./BUILD/nginx-1.2.6/auto/cc
drwxr-xr-x 13 hayatomo hayatomo 4096  1月 22 07:24 2013 ./BUILD/nginx-1.2.6/auto/lib
drwxr-xr-x  2 hayatomo hayatomo 4096  1月 22 07:24 2013 ./BUILD/nginx-1.2.6/auto/lib/geoip

ポイントはlsコマンドのオプションd

$ man ls
・・・
  -d     ディレクトリの中身を表示せず、他のファイルと同じようにディレクトリ名をリ
スト表示する。
・・・

知っている人は知っていると思いますが、自分みたいに知らない人もたぶんいらっしゃって、そういう人のためにパッと検索してサッと解決できればと思ってここに残します。