What is the command to list files from directory in decreasing order of their file size.

Showing Answers 1 - 6 of 6 Answers

Pavithra Navaneeth

  • Nov 3rd, 2007
 

ll -rt|sort -knr5
Here ll -rt list the files along with permission, owner, group, etc...
sort will sort the output of ll -rt according to 5th field which is the file size.
Hence the output of list will be sorted according to the file size and it will be listed.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions