Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, I need some help with finding a large temp file. I know that this is being caused either by Oracle Reports of Oracle BI. I have 82GB filled in ...
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    15

    Need to find a large file

    Hello,

    I need some help with finding a large temp file. I know that this is being caused either by Oracle Reports of Oracle BI. I have 82GB filled in the /opt directory but when I run a du -h or a du -ha it only shows 17GB total in opt. Can someone let me know what other command I can use to find what file is chewing up the rest of the directory?

    Thanks,
    Nick

  2. #2
    Just Joined!
    Join Date
    Apr 2009
    Posts
    15
    Found the issue using lsof | fgrep \(deleted\)

    I restarted the application at fault so I know at least what caused it.

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    You need to figure out what other directories are in that mount besides /opt. It could be that /tmp or some is in the same file system.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    You can use find to search for files over a certain size:
    Code:
    find /opt -size +{size_in_kb}k -exec ls -lh {} \;
    Just replace {size_in_kb} with some large value (1000000 for 1 GB).

Posting Permissions

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