Archive for the ‘One Liners’ category

One Liner: Find Large (or small) files

March 23rd, 2010

To find files larger than 20M:

#find . -type f -size +200000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’

Share

One Liner: Find Broken Symlinks

March 23rd, 2010

One-liner to find broken symlinks in the filesystem:

#find -L . -type l

Share

cPanel Web Site Hosting by IntraHost