Re: ls -al und Datumformat
Florian Ernst schrieb:
Hat jemand eine Idee wie diese durcheinander gewürfelte Art
der Datums-Formatierung zu erklären ist?
Die locale ist auf C, wenn ich sie auf de_DE einstelle ist es
einheitlich.
Liegt es etwa daran dass die Dateien nicht aus diesem
Jahr sind?
Jup, so ist es, sieh bitte auch »info ls«:
Da hatte ich auch schon nachgesehen.
|By default, file timestamps are listed in abbreviated form. Most
|locales use a timestamp like `2002-03-30 23:45'. However, the default
|POSIX locale uses a date like `Mar 30 2002' for non-recent timestamps,
|and a date-without-year and time like `Mar 30 23:45' for recent
|timestamps.
Davon steht bei mir nichts.
info ls:
`ls': List directory contents
=============================
The `ls' program lists information about files (of any type, including
directories). Options and file arguments can be intermixed
arbitrarily, as usual.
For non-option command-line arguments that are directories, by
default `ls' lists the contents of directories, not recursively, and
omitting files with names beginning with `.'. For other non-option
arguments, by default `ls' lists just the file name. If no non-option
argument is specified, `ls' operates on the current directory, acting
as if it had been invoked with a single argument of `.'.
By default, the output is sorted alphabetically, according to the
locale settings in effect. (1) If standard output is a terminal, the
output is in columns (sorted vertically) and control characters are
output as question marks; otherwise, the output is listed one per line
and control characters are output as-is.
Because `ls' is such a fundamental program, it has accumulated many
options over the years. They are described in the subsections below;
within each section, options are listed alphabetically (ignoring case).
The division of options into the subsections is not absolute, since some
options affect more than one aspect of `ls''s operation.
Also see *Note Common options::.
* Menu:
* Which files are listed::
* What information is listed::
* Sorting the output::
* More details about version sort::
* General output formatting::
* Formatting file timestamps::
* Formatting the file names::
---------- Footnotes ----------
(1) If you use a non-POSIX locale (e.g., by setting `LC_ALL' to
`en_US'), then `ls' may produce output that is sorted differently than
you're accustomed to. In that case, set the `LC_ALL' environment
variable to `C'.
coreutils sind in der Version 5.0.91-2
PS: Auch wenn ich nicht weiß, ob Du überhaupt noch Beiträge von mir zu
sehen bekommst...
??? Warum sollte das so sein?
--
Mit freundlichen Gruessen
Bjoern Schmidt
Reply to: