?
Solved

finding my lost linux disk space without adding software

Posted on 2013-01-25
3
Medium Priority
?
163 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 1600 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 79

Assisted Solution

by:arnold
arnold earned 400 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses
Course of the Month10 days, 18 hours left to enroll

770 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