This is a discussion on Find the top 5 small file within the Linux forums, part of the Operating Systems category; Technique is same as finding the bigger files, but the only difference the sort is ascending order. # find . ...
| |||||||
| | #1 |
| Junior Member Join Date: Jul 2009
Posts: 16
Rep Power: 1 | Technique is same as finding the bigger files, but the only difference the sort is ascending order. # find . -type f -exec ls -s {} \; | sort -n | head -5 In the above command, most probably you will get to see only the ZERO byte files ( empty files ). So, you can use the following command to list the smaller files other than the ZERO byte files. # find . -not -empty -type f -exec ls -s {} \; | sort -n | head |
| | |
| Tags |
| file, find, small, top |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove big archive file using find command | vasudha | Linux | 0 | 07-17-09 12:21 PM |
| Deleted a file? Find in black market | Rameshjeee | News from the Tech and IT World | 0 | 11-06-08 11:31 PM |
| small jokes | xfilos | Jokes and humor | 0 | 10-27-08 10:23 PM |
| Small Help.... | carbon | BSNL broadband | 2 | 05-19-08 08:22 PM |