Thread: Find the top 5 small file
- 07-17-09, 11:28 AM #1Junior Member
- Join Date
- Jul 2009
- Posts
- 16
Find the top 5 small file 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
Similar Threads
-
How to convert LWP file to DOC file in windows 7 64 bit
By abani in forum WindowsReplies: 0Last Post: 05-23-12, 12:32 PM -
Find the top 5 big file
By vasudha in forum LinuxReplies: 1Last Post: 10-26-09, 02:01 PM -
Just need a small help!!!!!!!
By coolvaibh2009 in forum BSNL broadbandReplies: 1Last Post: 08-29-09, 02:12 PM -
Remove big archive file using find command
By vasudha in forum LinuxReplies: 0Last Post: 07-17-09, 11:21 AM -
Deleted a file? Find in black market
By Rameshjeee in forum News from the Tech and IT WorldReplies: 0Last Post: 11-06-08, 10:31 PM
LinkBack URL
About LinkBacks
Reply With Quote