PDA

View Full Version : [ubuntu] Searcing for Files by File Size



cforput
June 9th, 2008, 04:36 AM
Newbie here. My hard drive is full and I can't figure out why. In windows, you could use explorer (file manager) to search for files based on size. How do you do that in Nautilus?

SunnyRabbiera
June 9th, 2008, 04:39 AM
In nautilus you can go to "view" then to "arrange items" then "by size"

What is your hard drive size? your partition size?

cforput
June 11th, 2008, 03:01 AM
HDD size is 160 GB but I am using dual boot still. I have a few more apps to get converted (if I can) and then run for a while solely on Ubuntu. If successful, I will put all 160GB toward Ubuntu.

I have 3 partitions. 1 for XP, 1 for Ubuntu and 1 for both were I store data.

I don't think I was clear last time in what I am looking for. I have been doing some work on some DVDs I have and a bunch of times I had to force quit. I wanted to search my HDD for all files over 100MB (as an example). In Explorer, there was an option to search for files with file size parameters. This way, I could find all large files and determine if I needed them or not. If I had to force quit, it is possible that the app left some incomplete DVD images that could be substantial in size.

Is there a way to search your entire HDD (or at least the part you have access to) and look for files greater than 100MB?

bluepowder7
June 11th, 2008, 03:08 AM
places - search for files
name contains = <blank> or *
look in folder = filesystem
select more options
-> follow symbolic links, click ADD
-> size at least ...., click ADD
enter size, hit find

iaculallad
June 11th, 2008, 03:11 AM
Or you could do it using the ever-powerful terminal:


find . -type f -size +1024k -exec ls -lh {} \;

+/-1024k represents the size of the file you want to search.

cforput
June 11th, 2008, 03:36 AM
places - search for files
name contains = <blank> or *
look in folder = filesystem
select more options
-> follow symbolic links, click ADD
-> size at least ...., click ADD
enter size, hit find

Bluepowder7, this is exactly what I needed. Thanks. Case solved!

unutbu
June 11th, 2008, 03:46 AM
Click Applications>Accessories>Disk Usage Analyzer
Click Scan Filesystem

This gives a pie-shaped graphical representation of the relative size of folders on your hard drive. It is an amazingly useful tool for visualizing where all your HD space has gone.