1. List the files in current directory sorted by size ?
    ls -l | grep ^- | sort -nr
  2. List the hidden files in current directory ?
    ls -a1 | grep "^\."
  3. Display the Disk Usage of file sizes under each directory in currentDirectory ?
    du -k * | sort –nr
    or
    du -k * |du –k . | sort -nr
  4. Display the all files recursively with path under current directory ?
    find . -depth -print
  5. How do you find out drive statistics ?
    iostat -E
  6. Display disk usage in Kilobytes ?
    du -k
  7. Display top ten largest files/directories ?
    du -sk * | sort -nr | head

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 24-May-2008 13:26 by UnknownAuthor