Solved

finding my lost linux disk space without adding software

Posted on 2013-01-25
3
161 Views
Last Modified: 2013-01-27
I can run scripts on stock redhat 5 boxes.

I am looking for a good du script or two to find out what eats up the disk space by
large file
full directory

Here is what I found with google

Sudo
 
 
 
du  -s *      | sort -n
 
du -x --block-size=1024K | sort -nr | head -10


I am looking for a better script as well as how not to mess with /proc
0
Comment
Question by:TIMFOX123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 31

Accepted Solution

by:
farzanj earned 400 total points
ID: 38821106
It is more like troubleshooting.

First, issue command
df -hT

This will show you the percentage of used partitions.  Once you know which partition is of concern, you can use find command to find large files in that location, say /home

Then you issue command
find /home -type f -size +1G

This will show you files bigger than a GB.  If you have too many of these, you can then change your criteria like -size +10G or so.  You will be able to find the big files.
0
 
LVL 78

Assisted Solution

by:arnold
arnold earned 100 total points
ID: 38823475
Fuser md lsof can be used to track a process that may have an open filehandle to a file that was deleted.  A soon as the processID restarted. The space is reclaimed by the filesystem.
lsof -f /var
0
 

Author Closing Comment

by:TIMFOX123
ID: 38825224
thank you both very much!!!
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question