I hae seen this somewhere written: ls -la | sort +0nr -2 +2d
What is sort doing here? What are these arguments.
This is an obsolete command line usage, which is still supported but not documented in the man page anymore. You can check info coreutils 'sort invocation'
as proposed in the see also
section of the man page.
ls -la | sort +0nr -2 +2d
is equivalent to
ls -la | sort -k1nr,2 -k3d
which on my Ubuntu outputs the same as
ls -la | sort -k3d
info
command which gives information additional to what man
displays, and this command explains the older syntax. Run info sort
and use /
to search for older systems
.
info
as an optional package.
man sort
help?