,
Share with your friends 

LISTING FILES BY SIZE

6 ratings Views 226 
Author: Vishal_e40165b3 (Vishal Bele)  View Profile |  View other solutions by this author

Question / Problem


How to list files sorted by size?

Solution

ls -l | grep ^- | sort -nr -k 5 | more

or

ls -lR | grep ^- | sort -nr -k 5 | more

Applies to

Linux ,Red Hat Linux

Rank It

Login to rank it

Report


Advertisement