Skip to Content
gnux

-t, --sort-time

Sort by time, newest first; see --time.

An option of lsx.

Usage

lsx -t [FILE]...
lsx --sort-time [FILE]...

Details

ShortLongValueDefaultMeaning
-t--sort-timenonesort by time, newest first; see --time

Examples

Newest files first, in the long format

lsx -lt /var/log

Sort by last access time (-u) or status change time (-c), showing that time

lsx -ltu cache/ && lsx -lt --time=ctime cache/
lsx -t | headx -n 1

Help in the terminal

gnux help lsx --sort-time

On this page