Jaroslaw Rafa
2022-Sep-12 17:21 UTC
Outlook 365 MUA produces dovecot changing filename on some mailbox
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 raj at 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."
John Stoffel
2022-Sep-13 00:06 UTC
Outlook 365 MUA produces dovecot changing filename on some mailbox
>>>>> "Jaroslaw" == Jaroslaw Rafa <raj at rafa.eu.org> writes:> 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.Ooops, you're right! I was blanking on that since I was still thinking of the opendir() and readdir() calls which don't sort directory entries.> For unsorted list, one needs to use 'ls -lU' (that applies to GNU version of > 'ls'; other versions may not recognize the '-U' switch).Yup!