Re: When did the output of "ls -l" command change?



none wrote:
none wrote:
I noticed something different about the output to the ls command. The MM/DD/YY date stamp is numerical instead of alphabetical. I upgraded from FC6 to F7 and that's when I noticd the change. I also have a RH9 box that displays ls results as alphabetical. See below.

F7 "ls -l" command results:
drwx------ 2 xxxx xxxx 4096 2007-07-22 22:35 orbit-root/
drwx------ 2 xxxx xxxx 4096 2007-07-22 22:35 gconfd-root/
drwx------ 2 xxxx xxxx 4096 2007-07-22 23:55 ssh-PbUmB14720/
-rw------- 1 xxxxx xxxxx 214 2007-07-22 23:55 .gdm5ZW9VT
drwx------ 3 xxxxx xxxxx 4096 2007-07-22 23:55 gconfd-xxxxx/
drwx------ 2 xxx xxx 4096 2007-07-22 23:55 orbit-gdm/
drwx------ 2 xxxxx xxxxx 4096 2007-07-22 23:55 keyring-fPVPJB/
drwxrwxrwt 2 xxxx xxxx 4096 2007-07-22 23:55 .ICE-unix/
drwx------ 2 xxxxx xxxxx 4096 2007-07-22 23:55 virtual-xxxxx

RH9 "ls -l" command results:
drwxrwxrwt 2 xxx xxx 4096 Jul 11 17:10 .font-unix/
srw-rw-rw- 1 xxxx xxxx 0 Jul 11 17:10 .gdm_socket=
drwxrwxrwt 2 xxxx xxxx 4096 Jul 11 17:10 .X11-unix/
-r--r--r-- 1 xxxx xxxx 11 Jul 11 17:10 .X0-lock
drwx------ 2 xxxxx xxxxxx 4096 Jul 12 20:16 ssh-XXLhExQ8/
drwx------ 2 xxxxx xxxxxx 4096 Jul 12 20:17 mcop-xxxxx/
drwxrwxrwt 2 xxxx xxxx 4096 Jul 12 20:17 .ICE-unix/
drwx------ 2 xxxxx xxxxxx 4096 Jul 12 20:17 ksocket-xxxxx/

Wow, this was a quick solution. I added LC_TIME=POSIX to my local profile and the output is now back to the way I like it in the RH9 example. The new question now is how do I make this change global for all system accounts?


This is actually quite useful. I actually like the F7 date format better. Thanks for posting the solution. As for making global changes I would grep all files in /etc for "LC_TIME=". It's probably there or similar config dirs.

--
Dawid Michalczyk
http://www.comp.eonworks.com _Linux SysAdmin and Webmaster scripts_
.



Relevant Pages

  • Re: When did the output of "ls -l" command change?
    ... I upgraded from FC6 to F7 and that's when I noticd the change. ... I also have a RH9 box that displays ls results as alphabetical. ... As for making global changes I would grep all files in /etc for "LC_TIME=". ...
    (comp.os.linux.setup)
  • Re: When did the output of "ls -l" command change?
    ... MM/DD/YY date stamp is numerical instead of alphabetical. ... I upgraded from FC6 to F7 and that's when I noticd the change. ... I also have a RH9 box that displays ls results as alphabetical. ...
    (comp.os.linux.setup)