PDA

View Full Version : files having particular size ??


legolas
22-05-2006, 02:56 PM
hi,

in linux, how can i find the number of files and the file name which has size, say <= 10 KB??? i just wanted to list the total number of files and their names.... can any1 tell how to do this? thk you...

/legolas

vignesh
22-05-2006, 03:42 PM
Use grep.. You can use wordcount to find the number of files...

ls -l | wc -l

For < 10kb you can do this

blocksize ot s or k with ls

legolas
22-05-2006, 05:16 PM
could u give a more detailed explanantion or better the syntax of it? so that i can use it directly?

vignesh
22-05-2006, 07:17 PM
For all the options avaialable for ls type ls --help or man help or info help....