How to list files sorted by owner in Unix?

The canonical solution:

ls -l | sort -k3,3

A lone 3 (as in '-k3') would tells sort to use column 3 to the end-of-line for sorting. This lets you do more advanced sorts like ls -l | sort -k3,3 -rnk5,5, which would sort your files first by user-name, then by size, largest first.

As always, for more information, run man sort.


I would use find -printf "%u %h/%f\n" | sort