Disk is getting full, look for big images.
am 19.01.2008 07:21:23 von Simon
Hi,
I have a folder with 20 folders that branch into about 100 sub-folders each.
each folders has 100's of pictures in them.
My disk is 89% full, (10Gb partition, data only).
Is there a way to
1- Tell how much space are those 20 folders taking and what are the largest.
2- Compress all the images
a) If not find all the images that are above a certain size.
3- Search for all files that are above a certain size on the folder.
The reason I ask is because it is a web server, so no file should be above
200k and the sum total of all the files cannot possibly be anywhere near the
10gb it claims it has.
So I want to look for all the large files.
I guess there might be some sort of log/backup folder somewhere that I am
not aware of.
So if I could get a list of the big folders/files it might help in telling
me what is taking so much space.
Many Thanks
Simon
Re: Disk is getting full, look for big images.
am 19.01.2008 17:55:25 von Rikishi 42
On 2008-01-19, Simon wrote:
> I have a folder with 20 folders that branch into about 100 sub-folders
each.
> each folders has 100's of pictures in them.
>
> My disk is 89% full, (10Gb partition, data only).
That's not much, put in a bigger disk. :-)
> Is there a way to
> 1- Tell how much space are those 20 folders taking and what are the
largest.
Use du. ex: du /mydir -sh
> 2- Compress all the images
> a) If not find all the images that are above a certain size.
> 3- Search for all files that are above a certain size on the folder.
Compressing images is unlikely. If suppose they're jpg format allready?
In the case, you can set the jpg compression higher (and gain nothing) or
reduce resolution (and loose much quality)
For finding images over a certain resolution, use a combination of 'find'
and 'identify', from the ImageMagic collection of tools.
You can find files above a certain size with find:
find /mydir -type f -size +100k
Look into 'man find' for more details.
> The reason I ask is because it is a web server, so no file should be above
> 200k and the sum total of all the files cannot possibly be anywhere near the
> 10gb it claims it has.
Start with a 'du /Mydir -sh' on the root dirs.
There are graphical tools, too, that would give you a quick overview.
--
There is an art, it says, or rather, a knack to flying.
The knack lies in learning how to throw yourself at the ground and miss.
Douglas Adams
Re: Disk is getting full, look for big images.
am 21.01.2008 05:21:25 von Vakayil Thobias
"Simon" wrote in message
news:5vdj7mF1m2k1qU1@mid.individual.net...
> Hi,
>
> I have a folder with 20 folders that branch into about 100 sub-folders
> each.
> each folders has 100's of pictures in them.
>
> My disk is 89% full, (10Gb partition, data only).
>
> Is there a way to
> 1- Tell how much space are those 20 folders taking and what are the
> largest.
> 2- Compress all the images
> a) If not find all the images that are above a certain size.
> 3- Search for all files that are above a certain size on the folder.
>
> The reason I ask is because it is a web server, so no file should be above
> 200k and the sum total of all the files cannot possibly be anywhere near
> the 10gb it claims it has.
>
> So I want to look for all the large files.
> I guess there might be some sort of log/backup folder somewhere that I am
> not aware of.
> So if I could get a list of the big folders/files it might help in telling
> me what is taking so much space.
>
> Many Thanks
>
> Simon
>
go to the directory and execute the following command :
$ du -sk .