F9 - 'ls' date format? - Redhat

This is a discussion on F9 - 'ls' date format? - Redhat ; This is not a big deal, but if anybody knows... For years, when I did an ls -la in a *nix OS, it comes out (Fedora Core 4): [joe@linuxserver3 ~]$ dir total 94576 drwx--x--x 63 joe joe 4096 Sep 21 ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: F9 - 'ls' date format?

  1. F9 - 'ls' date format?

    This is not a big deal, but if anybody knows...

    For years, when I did an ls -la in a *nix OS, it comes out (Fedora Core
    4):

    [joe@linuxserver3 ~]$ dir
    total 94576
    drwx--x--x 63 joe joe 4096 Sep 21 10:02 .
    drwxr-xr-x 16 root root 4096 Aug 28 08:57 ..
    -rwxr--r-- 1 joe joe 6656 Mar 22 2005 04TAX.qpw
    -rw-rw-r-- 1 joe joe 25778804 Aug 26 13:58 all_databases.sql

    [joe@linuxserver3 ~]$ ls --version
    ls (coreutils) 5.2.1

    However, in Fedora 9, it uses strictly ISO date format:

    [joe@linuxserver4 ~]$ dir
    total 69212
    drwx------ 41 joe joe 4096 2008-09-19 18:43 .
    drwxr-xr-x 8 root root 4096 2008-09-18 06:38 ..
    -rw------- 1 joe joe 14370 2008-09-20 10:29 .bash_history
    -rw-r--r-- 1 joe joe 18 2008-02-29 09:27 .bash_logout

    [joe@linuxserver4 ~]$ ls --version
    ls (GNU coreutils) 6.10

    I checked the man page, and the manual for Coreutils
    (http://www.gnu.org/software/coreutil...coreutils.html), which
    indicated (Section 10.1.6) that "Time stamps are listed according to
    the time zone rules specified by the TZ environment variable, or by the
    system default rules if TZ is not set." I tried setting the TZ
    variable, and it doesn't seem to have an effect. LC_TIME is identical
    on both systems listed (LC_TIME="en_US.UTF-8"). Using '--time-
    style="iso"' results in mm-dd or yyyy-mm-dd (numeric) dates, but not
    characters for the month.

    Is there any way to get F9 back to showing Mon dd [YYYY] in directory
    listings?

    --
    Joe Makowiec
    http://makowiec.org/
    Email: http://makowiec.org/contact/?Joe
    Usenet Improvement Project: http://improve-usenet.org/

  2. Re: F9 - 'ls' date format?

    On Sun, 21 Sep 2008 14:29:18 +0000, Joe Makowiec typed this message:

    > This is not a big deal, but if anybody knows...
    >
    > For years, when I did an ls -la in a *nix OS, it comes out (Fedora Core
    > 4):
    >
    > [joe@linuxserver3 ~]$ dir
    > total 94576
    > drwx--x--x 63 joe joe 4096 Sep 21 10:02 . drwxr-xr-x 16 root
    > root 4096 Aug 28 08:57 .. -rwxr--r-- 1 joe joe 6656 Mar 22
    > 2005 04TAX.qpw -rw-rw-r-- 1 joe joe 25778804 Aug 26 13:58
    > all_databases.sql
    >
    > [joe@linuxserver3 ~]$ ls --version
    > ls (coreutils) 5.2.1
    >
    > However, in Fedora 9, it uses strictly ISO date format:
    >
    > [joe@linuxserver4 ~]$ dir
    > total 69212
    > drwx------ 41 joe joe 4096 2008-09-19 18:43 . drwxr-xr-x 8 root
    > root 4096 2008-09-18 06:38 .. -rw------- 1 joe joe 14370
    > 2008-09-20 10:29 .bash_history -rw-r--r-- 1 joe joe 18
    > 2008-02-29 09:27 .bash_logout
    >
    > [joe@linuxserver4 ~]$ ls --version
    > ls (GNU coreutils) 6.10
    >
    > I checked the man page, and the manual for Coreutils
    > (http://www.gnu.org/software/coreutil...coreutils.html), which
    > indicated (Section 10.1.6) that "Time stamps are listed according to the
    > time zone rules specified by the TZ environment variable, or by the
    > system default rules if TZ is not set." I tried setting the TZ
    > variable, and it doesn't seem to have an effect. LC_TIME is identical
    > on both systems listed (LC_TIME="en_US.UTF-8"). Using '--time-
    > style="iso"' results in mm-dd or yyyy-mm-dd (numeric) dates, but not
    > characters for the month.
    >
    > Is there any way to get F9 back to showing Mon dd [YYYY] in directory
    > listings?


    You could add an alias dir to .bashrc

    alias dir='ls -l --time-style="+%b %e %H:%M"'

  3. Re: F9 - 'ls' date format?

    In news:Xns9B206AB0B3BD7makowiecatnycapdotrE@85.214.9 0.236,
    Joe Makowiec typed:

    > [joe@linuxserver4 ~]$ dir

    ....
    > [joe@linuxserver4 ~]$ ls --version
    > ls (GNU coreutils) 6.10


    What does "ls" have to do with "dir"?

    $ diff /usr/bin/dir /bin/ls
    Binary files /usr/bin/dir and /bin/ls differ



  4. Re: F9 - 'ls' date format?

    On 22 Sep 2008 in linux.redhat, ynotssor wrote:

    > In news:Xns9B206AB0B3BD7makowiecatnycapdotrE@85.214.9 0.236,
    > Joe Makowiec typed:
    >
    >> [joe@linuxserver4 ~]$ dir ...
    >> [joe@linuxserver4 ~]$ ls --version ls (GNU coreutils) 6.10

    >
    > What does "ls" have to do with "dir"?
    >
    > $ diff /usr/bin/dir /bin/ls
    > Binary files /usr/bin/dir and /bin/ls differ


    I've got dir aliased to ls -la.

    --
    Joe Makowiec
    http://makowiec.org/
    Email: http://makowiec.org/contact/?Joe
    Usenet Improvement Project: http://improve-usenet.org/

+ Reply to Thread