Link to home
Start Free TrialLog in
Avatar of TIMFOX123
TIMFOX123Flag for United States of America

asked on

I need bash commands to investigate a 1 gig addition to our systems.

We manage systems and have customers.   Many of our systems have used an extra gig of space today and I can not figure out what the customer has done.

I need Linux commands to:
1) find all directories created in the last week
2) all files that were installed in the last week
3) the size of each directory and subdirectory so in the future I can compare the growth.
4) hair because at this point I have it pulled out


I did check the rpm's and none were installed in the last 2 months.

Redhat 5 and above, bash, and I can not install any software.
ASKER CERTIFIED SOLUTION
Avatar of Seth Simmons
Seth Simmons
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Lsof /var if that is the filesystemwherethe extra space is.

Likely issue is that you have a process that is writing to a log file that could have been deleted.
I.e. If you restart the correct service, the space will be released.

I.e. Process writing into /var/log/testfile, you then issue an rm /var/log/testfile
The filehandle/inode will continue to be used by the writing process, even though nothing on the filesystemi.e. Du, find, ls etc. will not be able to see it.
Lsof can be used to scan the running processes and the partition to identify the resource.
lsof is for currently open files
if the extra file system space is used by a file that isn't currently in use, lsof is useless
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
4) hair restoration is best done by:
http://www.vargacseppek.hu/
been there, done that. Honest.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TIMFOX123

ASKER

Thank you all
I would say that you forgot one comment that addressed 4th part of question...