File listing by using find, sort and ls commands

38 Views Asked by At

How can i see files bigger than 10MB sorted by their size and in descending order in my home directory, by using find sort and ls commands (terminal)?

I begin my pipe with this command:

find ~ -type f -size +10M 

and then i continue with sort:

|sort -rh

But when I include the ls command, everything goes off. Note: I want a printed result like this:

 rw-r--r--+  1 user users  100M May 18  2021 file.tar.gz
 rw-r--r--+  1 user users  99M May 18  2021 file2.tar.gz
 etc
0

There are 0 best solutions below