The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 07-01-2009
ChatPerdu ChatPerdu is offline
Registered User
  
 

Join Date: Jul 2009
Posts: 2
For:

Code:
find . -type d -size +2

I get this:
.
./99584B685FF3/bbb.app
./D3B9BA1F472/www.app
./830F3FF6E3F9/Documents
./A754A83053D/www.app
...
For some reason, it finds stuff one directory lower... "99584B685FF3" is the directory I am aiming for, so I tried

Code:
find . -type d -size +2 -maxdepth 1

I get:
. Shouln't it be something like ./99584B685FF3

and for

Code:
find . -type d -size +2 -maxdepth 2

.
./99584B685FF3/bbb.app
./D3B9BA1F472/www.app
./830F3FF6E3F9/Documents
./A754A83053D/www.app
...

What could be the reason. I initially thought directories were just "special files" in UNIX and do not have a size. But the "Documents" shown is really a directory.

Thanks for suggesting but still no go. Furthermore, I am losing all the size sorting - largest directory first

Last edited by ChatPerdu; 07-01-2009 at 06:40 PM.. Reason: wrong info posted