How can I sort the
/dev directory by type and major and minor device number when doing
The best way I've found so far is:
ls -l /dev | sort -k 1.1,1.2 -k 5n -k 6n | less
Is there a better way?
Three processes is already pretty slim. You'll only make it slimmer if you could persuade
So I'd say no, no better way.
(The options to sort don't have any redundant fluff in them either.)