Tuesday, January 4, 2011

How to find the largest file in a directory

The best way is to use ls, sorted by size and to get the biggest one, use head

ls -S | head -1

No comments:

Post a Comment

There was an error in this gadget