Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to list files on one directory by size? Thanks.

Status
Not open for further replies.

we2aresame

Technical User
Feb 10, 2003
128
CA
how to list files on one directory by size? Thanks.
 
du -sk | sort -n will give you just the name of the file and the size in kbytes sorted from smallest to largest. It won't give you the time stamp and will also include any subdirectories in the directory.
 
Thanks. It's much more difficult to list files by size than I thought before.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top