Mike McCarty wrote:
Joachim Backes [RHRK] wrote:
Using "ls -l|less " in FC5 gives a strange output on a fresh FC5
installation.
Using "more" instead of "less" generates correct output. Did anybody
make similar experiences?
ESC[00mtotal 916
-rw-r--r-- 1 root root 11942 Feb 12 09:50 ESC[00mLICENSEESC[00m
What you see here is the escape sequences for setting colors
coming out of ls. You see, "less" is translating the escape
sequences into graphic characters (like 0x1B is becoming "ESC").
Try this...
$ ls -l --color=never | less
If that looks ok (it should) try
$ ls -l --color=auto | less
That *should* also work. You may have an alias for "ls".
Mike
Hi, Mike,
You are right: there is an alias: ls='ls --color'.
Using both options in ls cmd (--color=never or --color=auto) helps.
Many thanks.
Regards
--
Joachim Backes <joachim.backes@xxxxxxxxxxxxxx>
University of Kaiserslautern,Computer Center [RHRK],
Systems and Operations, High Performance Computing,
D-67653 Kaiserslautern, PO Box 3049, Germany
--------------------------------------------------
Phone: +49-631-205-2438, FAX: +49-631-205-3056
http://hlrwm.rhrk.uni-kl.de/home/staff/backes.html