hello fjkum. i guess you can also use du for that.
smallest first (recursive)
largest first (recursive)
smallest first (not recursive)
largest first (not recursive)
you can remove the numbers by adding '| cut -f 2'
Code:
du * -s | sort -nr | cut -f 2
by default the sizes are printed in kilobytes. add '-b' to du to print sizes in bytes.
Code:
du * -s -b | sort -nr
regards