Find the answer to your Linux question:
Results 1 to 3 of 3
Hello, all. I am trying to determine which files take up the space on my Centos 4.3 server. So far, I can't account for them using these methods. I am ...
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    2

    Red face please help searching for big files on Centos 4.3

    Hello, all.

    I am trying to determine which files take up the space on my Centos 4.3 server.
    So far, I can't account for them using these methods.
    I am stumped. Please advise.

    1.
    /]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 247G 216G 19G 93% /

    2. I searched / for any file equal bigger than 5000K. That didn't account for 216 GBs reported being used on this server.
    find / -type f -size +5000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'

    3. du / showed only 122 G
    []# du / -sh
    122G /

    4.
    [/]# du /bin /dev/ /home/ lib/ /media/ /sbin/ /srv/ /tmp/ /var/ /boot/ /etc/ /initrd/ /lost+found/ /misc/ /opt/ /root/ /selinux/ /sys/ /usr/ -sh
    5.3M /bin
    152K /dev/
    108K /home/
    196M lib/
    12K /media/
    15M /sbin/
    8.0K /srv/
    3.9M /tmp/
    5.7G /var/
    17M /boot/
    54M /etc/
    8.0K /initrd/
    16K /lost+found/
    8.0K /misc/
    18G /opt/
    33M /root/
    8.0K /selinux/
    0 /sys/
    2.1G /usr/

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    What does
    Code:
    ls / -al
    report? have you got hidden folders like a trash folder?

  3. #3
    Just Joined!
    Join Date
    Jan 2010
    Posts
    2
    Sorry. This suggestion did not help.
    Nothing in .Trash

    [/]# ls / -alhs
    total 188K
    8.0K drwxr-xr-x 24 root root 4.0K Jan 12 12:03 .
    8.0K drwxr-xr-x 24 root root 4.0K Jan 12 12:03 ..
    0 -rw-r--r-- 1 root root 0 Jan 11 09:08 .autofsck
    8.0K drwxr-xr-x 2 root root 4.0K Apr 8 2008 bin
    8.0K drwxr-xr-x 3 root root 4.0K Jul 10 2006 boot
    0 drwxr-xr-x 7 root root 4.5K Jan 11 09:09 dev
    16K drwxr-xr-x 83 root root 12K Jan 12 04:05 etc
    8.0K drwxr-xr-x 6 root root 4.0K Dec 19 2006 home
    8.0K drwxr-xr-x 2 root root 4.0K Feb 21 2005 initrd
    8.0K drwxr-xr-x 11 root root 4.0K Dec 20 2006 lib
    16K drwx------ 2 root root 16K Jun 27 2006 lost+found
    8.0K drwxr-xr-x 3 root root 4.0K Jul 19 2006 media
    8.0K drwxr-xr-x 2 root root 4.0K Jan 1 2006 misc
    8.0K drwxr-xr-x 3 root root 4.0K Oct 26 14:10 mnt
    8.0K drwxr-xr-x 5 root root 4.0K Nov 4 11:00 opt
    0 dr-xr-xr-x 114 root root 0 Jan 11 01:08 proc
    8.0K drwxr-x--- 26 root root 4.0K Jan 11 16:16 root
    16K drwxr-xr-x 2 root root 12K Apr 8 2008 sbin
    8.0K drwxr-xr-x 2 root root 4.0K Jun 27 2006 selinux
    8.0K drwxr-xr-x 2 root root 4.0K Feb 21 2005 srv
    0 drwxr-xr-x 9 root root 0 Jan 11 01:08 sys
    8.0K drwxrwxrwt 8 root root 4.0K Jan 14 17:04 tmp
    8.0K drwxr-xr-x 14 root root 4.0K Jun 27 2006 usr
    8.0K drwxr-xr-x 25 root root 4.0K Dec 26 2006 var

Posting Permissions

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