Results 1 to 4 of 4

Thread: Top usage of files

  1. #1

    Top usage of files

    Hello,

    I have plenty of files lying in different partitions which is occupying my disk space. How do i find out the top 10 files ( top usage) ? What is the command to search this ?

    Note : I am using Redhat Linux.

  2. #2

    Find top 10 files by usage

    Quote Originally Posted by jaiganeshmca View Post
    Hello,

    I have plenty of files lying in different partitions which is occupying my disk space. How do i find out the top 10 files ( top usage) ? What is the command to search this ?

    Note : I am using Redhat Linux.
    Easier to do this one partition at a time. Also you probably need root privileges to see all the files.


    sudo sh -c "find /partition -type f -exec du -s {} + | sort -nr | head -10"

    Explanation:
    sudo # acquire root privileges
    sh -c # execute a command string
    find /partition -type f # look for files starting at /partition
    exec du -s {} + # compute disk utilization for each file found
    sort -nr # sort numerically, largest first
    head -10 # show 10 leading results

  3. #3
    Quote Originally Posted by themidir View Post
    That's a very interesting topic. But this field is still new to me. It will be grateful if you give me some
    more information about it. Thanks in advance.
    Just what kind of information do you need? There are many books of several hundred pages each full of Linux information. But I can't read your mind to determine what you mean by "more information".

    carl

  4. #4
    Administrator Advisor peter's Avatar
    Join Date
    Apr 2004
    Posts
    882
    Quote Originally Posted by themidir View Post
    That's a very interesting topic. But this field is still new to me. It will be grateful if you give me some
    more information about it. Thanks in advance.
    I have a feeling that this is another of those automated spam bots. Search for the text and it'd all over the net in different forums. Yet another Vietnam IP address with a gmail account with a "+" in its name. Themidir banned and posts removed.

Similar Threads

  1. cpu usage
    By cushman350 in forum Windows - General Topics
    Replies: 1
    Last Post: 04-13-2005, 08:12 PM
  2. Memory usage
    By BurntAsh in forum Linux - General Topics
    Replies: 7
    Last Post: 10-04-2003, 11:08 PM
  3. KDE usage question
    By elovkoff in forum Linux - Software, Applications & Programming
    Replies: 5
    Last Post: 08-24-2002, 03:34 PM
  4. Who would like a PET on ngrep's usage?
    By in forum Linux - General Topics
    Replies: 22
    Last Post: 04-18-2002, 01:03 AM
  5. Software usage
    By BDV2 in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 02-09-2002, 06:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •