Results 1 to 7 of 7

Thread: Date mask in ls -l output

  1. #1

    Default Date mask in ls -l output

    I just installed a OpenSuse 11.4 box. Now when I do a 'ls -l' I see the date format different than on all my other boxes even though I have identical regional settings.

    Is there a way (env var) to control this behaviour ?

    Thx: peter

  2. #2

    Default Re: Date mask in ls -l output

    Allright, seems like OpenSuse 11.4 holds much more configuration files in /etc/profile.d
    However, setting something like
    export LS_OPTIONS="$LS_OPTIONS --time-style=long-iso"

    Does the trick.

  3. #3
    Join Date
    Dec 2009
    Location
    Moldova
    Posts
    129

    Default Re: Date mask in ls -l output

    Hello,
    man is a great tool

    Code:
    man ls
    
    --time-style=STYLE
                  with -l, show times using style STYLE: full-iso, long-iso, iso, locale, +FORMAT.  FORMAT is interpreted like  `date';  if
                  FORMAT  is FORMAT1<newline>FORMAT2, FORMAT1 applies to non-recent files and FORMAT2 to recent files; if STYLE is prefixed
                  with `posix-', STYLE takes effect only outside the POSIX locale
    for example:
    Code:
    ls -l --time-style long-iso

  4. #4
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Date mask in ls -l output

    On 05/18/2011 03:06 PM, isemionov wrote:
    >
    > Hello,
    > man is a great tool


    i'm looking forward to the next version, i think it is soon released as
    wo-man

    --
    dd CAVEAT: http://is.gd/bpoMD
    [NNTP via openSUSE 11.4 [2.6.37.6-0.5] + KDE 4.6.0 + Thunderbird 3.1.10]
    Dual booting with Sluggish Loser7 on Acer Aspire One D255

  5. #5
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Date mask in ls -l output

    DenverD wrote:

    > i'm looking forward to the next version, i think it is soon released as
    > wo-man
    >

    It will be more verbose then?

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
    ION | 3GB Ram

  6. #6
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Date mask in ls -l output

    On 05/18/2011 04:45 PM, martin_helm wrote:
    >
    > It will be more verbose then


    yes, and there will be a few new CLI switches too, like

    -head_ache
    -too_tired
    -new_shoes

    --
    dd CAVEAT: http://is.gd/bpoMD
    [NNTP via openSUSE 11.4 [2.6.37.6-0.5] + KDE 4.6.0 + Thunderbird 3.1.10]
    Dual booting with Sluggish Loser7 on Acer Aspire One D255

  7. #7
    Join Date
    Nov 2010
    Location
    Youngstown, OH
    Posts
    155

    Default Re: Date mask in ls -l output

    I control my ls output with this:
    Code:
    ls='ls --time-style="+%b %d %Y %l:%M %p"'
    which gives me this when I type ls -l
    Code:
    -rw-r--r--  1 jj users   1157 May 15 2011 10:06 PM xx
    HTH.

    check
    Code:
    alias | grep ls
    on your other machines to compare.
    and UNIX man pages : date () for options.
    Lenovo: OpenSUSE 11.4/32 | Xfce 4.8.1 | Intel Core2 Duo T7200 | Intel 945GM/GMS | 4G RAM | Firefox 8.0 | Thunderbird 3.1.16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •