Tcsh ls now sorts like Windows by default

The dup I did on 11/15 has added --group-directories-first to LS_OPTIONS in tcsh systemwide, so now ls -lt no longer shows the most recently modified “thing” at the top (older directories are above everything).

I can’t find where this is now being set: not in /etc/csh*, /etc/profile*
Is it set by systemd?

Have you checked the /etc/profile.d/ directory for such config directives (especially the .csh files for any script setting LS_OPTIONS)?

This appears to be set as a default in /usr/etc/profile.d/ls.tcsh. I didn’t notice it (as a fellow tcsh user) because I’ve aliased ls with my own defaults that I’ve used for years.

If you remove the file from /usr/etc/profile.d, it’ll just be reinstalled the next time the package it comes from is updated. Copy it from that location to /etc/profile.d and set your own options, and that will override the system settings in /usr/etc.

1 Like

Thank you, that was it.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.