India Broadband Forum


Find the top 5 big file

This is a discussion on Find the top 5 big file within the Linux forums, part of the Operating Systems category; The following command will display the top 5 largest file in the current directory and it’s subdirectory. This may take ...

Go Back   India Broadband Forum > Computers > Operating Systems > Linux

India Broadband Forum


                      

Reply

 

LinkBack Thread Tools Display Modes
Old 07-17-09, 12:28 PM   #1
Junior Member
 
Join Date: Jul 2009
Posts: 16
Rep Power: 1
vasudha is on a distinguished road
Default Find the top 5 big file

The following command will display the top 5 largest file in the current directory and it’s subdirectory. This may take a while to execute depending on the total number of files the command has to process.

# find . -type f -exec ls -s {} \; | sort -n -r | head -5
vasudha is offline   Reply With Quote
Old 10-26-09, 04:01 PM   #2
Junior Member
 
Join Date: Oct 2009
Posts: 22
Rep Power: 1
abena is on a distinguished road
Default

Quote:
Originally Posted by vasudha View Post
The following command will display the top 5 largest file in the current directory and it’s subdirectory. This may take a while to execute depending on the total number of files the command has to process.

# find . -type f -exec ls -s {} \; | sort -n -r | head -5
great ! have you tried this command?how many seconds that it will recover those files? well i guess i had to try this command to find out myself..thanks..its an added knowledge on my part
abena is offline   Reply With Quote
Old 11-17-09, 11:22 AM   #3
Junior Member
 
whwmike's Avatar
 
Join Date: Aug 2009
Posts: 10
Rep Power: 1
whwmike is on a distinguished road
Send a message via AIM to whwmike Send a message via MSN to whwmike Send a message via Yahoo to whwmike
Default

Thanks for the good command.
This one is very helpful.
whwmike is offline   Reply With Quote
Reply

Tags
big, file, find, top

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Find the top 5 small file vasudha Linux 0 07-17-09 12:28 PM
Remove big archive file using find command vasudha Linux 0 07-17-09 12:21 PM
Pls help me, find what's my SNR value jon08 BSNL broadband 11 02-01-09 10:12 PM
Deleted a file? Find in black market Rameshjeee News from the Tech and IT World 0 11-06-08 11:31 PM
Help Me Find a ......... tiku009900 Airtel Broadband 3 01-30-08 01:37 PM


All times are GMT +5.5. The time now is 03:03 PM.


India Broadband Forum