Find file more than 500 MB

Hi,

I used to use the below command on Solaris

find /var/tmp -size +500000 -exec ls -e {} \;

but this command does not seem to work on HP-UX.

Can you help me list all files under /var/tmp and its sub-directories which are more than 500MB in size ?

what part of the command is not working for you?

It does not throw any error but does not list all the files more than 500 MB

so its listing some files which are above 500MB?

-size +500M will also do the same i am just concerned about the ownership and special files

==> find /tmp/var -size +500M -exec ls -ltre {} \;
find: Error in processing the argument 500M

The OP command does not list all the files more than 500 MB. Permission is not an issue. The command or parameter looks to be a inappropriate.

I am unable to spot any issues with the command here :confused:

On HP /var/tmp could very well be a link....

find /var/tmp/. -size +500000 -exec ls -el {} \;

-e option of ls is to be used with -l ...

find /var/tmp -size +524288000c

From man find on v2

 -size n[c]               True if the file is n blocks long (512 bytes
                               per block).  If n is followed by a c, the
                               size is in bytes.

Hope that helps

Regards
Peasant.