[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: binary output from ls



the pattern like "ESC[0m" is the ANSI color control code
your non-root user will have a "alias ls = 'ls --color'" if u type the "alias"
command in the terminal, but the default the root do not have this alias.

----- Original Message ----- 
From: "Ivan Glushkov" <glushkov@mail.desy.de>
To: "Debian User" <debian-user@lists.debian.org>
Sent: Thursday, February 16, 2006 12:09 AM
Subject: binary output from ls


> Hi,
> if I issue ls . > filelist.txt
> as user I get:
> a binary file like:
> 
> ESC[0mESC[0mAcro3nKTzaESC[0m
> ESC[0mfilelist.logESC[0m
> ESC[01;34mgconfd-glushkovESC[0m
> ESC[01;34mkde-glushkovESC[0m
> ESC[01;34mkeyring-CXhOCWESC[0m
> ESC[01;34mksocket-glushkovESC[0m
> ESC[01;35mmapping-glushkovESC[0m
> ESC[01;34morbit-glushkovESC[0m
> ESC[01;34mssh-mmCRYB8783ESC[0m
> ESC[01;35mxmms_glushkov.0ESC[0m
> ESC[0mzmanImD0upESC[0m
> ESC[m
> ...
> 
> if I do that like root, I get the list of files as expected.
> What is the difference? Both root and the user are using the same shell.
> 
>       Cheers,
>       Ivan
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>

Reply to: