Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

finding files which sizes are equal to 20

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello;

I want to find files which their sizes are 20.

thanks.
 


man find:

-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.


!! this thread should not be here !!
------------ jamisar
Einfachheit ist das Resultat der Reife. (Friedrich Schiller)
Simplicity is the fruit of maturity.
 
Not really, that would find files (if any) of exactly 20 bytes in size. I'm assuming that's not what you want. For files of (exactly) 20 Mb, you'd need:

find \ -size 20971520c

To find any files bigger than 20 Mb, precede the number with a +.

HTH.
 
Sorry - got my slashes mixed up:

Not really, that would find files (if any) of exactly 20 bytes in size. I'm assuming that's not what you want. For files of (exactly) 20 Mb, you'd need:

find / -size 20971520c

To find any files bigger than 20 Mb, precede the number with a +.

HTH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top