LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-25-2010, 05:12 AM   #1
ethereal1m
Member
 
Registered: Jan 2010
Distribution: slackware 13.0 64
Posts: 259

Rep: Reputation: 30
Question What is the best way to detect file accumulation


Dear all,
I have a situation where my root partition is very tight and I thought my activity on the area didn't require large file, but I was wrong, I'm loosing couple hundreds of Megs in a relatively short time.

What I'm doing is developing web site on /var/www/htdocs extensively where its size is only increasing couple Megs more since its first creation.

Question is, how can I detect the location of file accumulation? I checked the /var/logs dir but I didn't find anything that was large.

Any ideas?

Regards,
ethereal1m
 
Old 08-25-2010, 05:34 AM   #2
lylemwood
Member
 
Registered: Jan 2008
Location: Toronto, Canada
Distribution: Slackware, CentOS
Posts: 47

Rep: Reputation: 18
Try a couple of old favourite command line tools

Hello,

I'd try one of these options:

1. find (man find for the syntax) and look for particularly large files if you think these might be huge

2. tree (man tree for the syntax) and display the file sizes (-s) then just less/more/most the output of that to dig through.

Sadly, this does amount to a large amount of work, but I think you'll be able to dig it up quickly without having to add additional software.

Which distribution of Linux, and version thereof, are you using?

What are you using to develop the webserver? Is it a LAMP/LAPP configuration? (Apache, MySQL/PostgreSQL, PHP)

Are you using some kind of CMS or is it from scratch?
 
1 members found this post helpful.
Old 08-25-2010, 06:05 AM   #3
ethereal1m
Member
 
Registered: Jan 2010
Distribution: slackware 13.0 64
Posts: 259

Original Poster
Rep: Reputation: 30
hi,
thanks for the fast reply. I'm using Slackware 64 13.0, Apache, MySQL,PHP (all by themselves, not LAMP), using Drupal CMS framework.

Let me try some of your suggestions, maybe I got some ideas...
 
Old 08-25-2010, 06:44 AM   #4
ethereal1m
Member
 
Registered: Jan 2010
Distribution: slackware 13.0 64
Posts: 259

Original Poster
Rep: Reputation: 30
I find some of KDE cache files under /var/tmp/kdecache and VI session files under /var/tmp/ take good chuck of disk space. I wonder if it is OK to delete these...
 
Old 08-25-2010, 07:18 AM   #5
lylemwood
Member
 
Registered: Jan 2008
Location: Toronto, Canada
Distribution: Slackware, CentOS
Posts: 47

Rep: Reputation: 18
Thumbs up Safe to delete KDE Cache,

Hello again,

KDE Cache:

According to this http://forum.kde.org/viewtopic.php?f=17&t=45909 it is safe to delete KDE cache files...

Quote:
It is completely safe to delete these folders. They are not used for storing any data, although I wouldn't delete them with KDE running....

Unfortunately there is no way to prevent this from happening in the future, except manually clearing it.
VI Session files:

These are just session caches from vi... If you're comfortable not having them around, I'd toss them. One thing, though, move them first and make sure functionality isn't lost in your dev environment/preferences... Sometimes tools rely on these things that are supposed to be tossable...

Good luck and let us know how it turns out!
 
1 members found this post helpful.
Old 08-25-2010, 12:16 PM   #6
ethereal1m
Member
 
Registered: Jan 2010
Distribution: slackware 13.0 64
Posts: 259

Original Poster
Rep: Reputation: 30
very good, thanks for the help!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect presence of a file s8utt Linux - Newbie 6 05-20-2009 06:41 AM
detect a new file in a folder.... os2 Programming 1 03-12-2006 11:52 AM
The CDROM and FLOPPY can't detect file Mathsniper Linux - Hardware 2 04-16-2005 12:13 AM
Detect file changes? x5452 Linux - General 9 04-18-2004 02:45 PM
inact_dirty: memory accumulation tradium Linux - General 0 03-15-2002 11:05 AM


All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration