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

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.

Hello,
man is a great tool :slight_smile:

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:

ls -l --time-style long-iso

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

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


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

DenverD wrote:

> i’m looking forward to the next version, i think it is soon released as
> wo-man :wink:
>
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

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

I control my ls output with this:

ls='ls --time-style="+%b %d %Y %l:%M %p"'

which gives me this when I type ls -l

-rw-r--r--  1 jj users   1157 May 15 2011 10:06 PM xx

HTH.

check

alias | grep ls 

on your other machines to compare.
and UNIX man pages : date () for options.