Text Size
   

ディレクトリ一覧

ディレクトリ一覧(現在の階層のみ)
ls -l | awk '$1 ~ /d/ {print $9}'

ディレクトリ一覧(現在の階層のみ)出力 パーミッション/ディレクトリ名/ユーザ:グループ
ls -l | awk '$1 ~ /d/ {print $1"/" $9"/" $3":" $4}' \
| sed -e 's/d/   /' -e 's/rwx/7/g' -e 's/rw-/6/g' -e 's/r-x/5/g' \
-e 's/r--/4/g' -e 's/---/0/g'

ディレクトリ一覧(下位階層まで)
ls -R | grep :

深さ1のディレクトリサイズ取得(dirは任意のディレクトリ)
find /dir/ -maxdepth 1 -type d | xargs du -hs