Sorting
Sort option
--sort=order
sort by field, default: ascending and case insensitive.
available fields:
nature(default)
none(nosort)
name
.name(sorts by name without a leading dot)
size
time
owner
group
extension
width
inode
mimetype
field beginning with Uppercase is case sensitive use field followed by '-descend' to sort in descending order
combined
eg: --sort=ext,size-descend,Name
it will sort entries by extension first, for those having the same extension, comparing their size, if two have the same size, comparing their name( case sensitive)
nature sort
type | Priority |
---|---|
hidden directory | 0 |
directory | 1 |
files | 2 |
link | 3 |
name | 4 |
Dir first
List directories before other files
--dir-first
Others
Please refer to man page or try --help
Last updated