How to find large file under root file system on AIX?
#/usr/bin/find / -xdev -size +8000 -exec /usr/bin/ls -al {} \; | /usr/bin/sort -n +4
-xdev
Always evaluates to the value True. Prevents the find command from traversing a file system different from the one specified by the Path parameter.
这个参数保证了不跨越其他文件系统,只在root下寻找.
+8000
8000 blocks * 512 bytes/block = 4096000 bytes = 4M
-EOF-