Dnia 12.09.2022 o godz. 12:30:29 John Stoffel pisze: > Sure, 'ls -l' doesn't do any sorting, it just reads the directory > information as returned from the disk and show you the results. If > you want it by time, you need to do: > > ls -ltr > > to have the newest files be at the end.
'ls' (and 'ls -l' as well) by default sorts files alphabetically. It has always been so. For unsorted list, one needs to use 'ls -lU' (that applies to GNU version of 'ls'; other versions may not recognize the '-U' switch). -- Regards, Jaroslaw Rafa r...@rafa.eu.org -- "In a million years, when kids go to school, they're gonna know: once there was a Hushpuppy, and she lived with her daddy in the Bathtub."