I forgot to mention in the first that I am working with mdk 8.1. in this even without alias l gives the output of ls. the same alias was working in rh. even after piping if option --color=yes is included it gives color output in terminal. How to get rid of the inbuilt (unknown place) alias l in mandrake 8.1
On Monday 11 March 2002 23:17, USM Bish wrote: > On Sun, Mar 10, 2002 at 08:54:01PM +0530, L.V.Gandhi wrote: > > I have made an alias in /etc/bashrc, $HOME/.bashrc and > > $HOME/.bash_profile as given below > > alias l="ls -alF --color=yes |more" > > this doesn't give the desired/actual result as given in > > command line. > > Any help please. > > ---end quoted text--- > > 1. If you want to make it a system default by placing in > /etc/bashrc, there is no need for duplication at the > user level. > > 2. Once you pipe the output through more or less, colors > would be lost, and multi-column outputs would not be > there. The ANSI color codes would be stripped by the > pager. If you do "ls -alf --color=yes > somefile" and > you do a cat of "somefile" you will see it in single > column. View the same file through a pager and even > colours will go. > > Bish. -- L.V.Gandhi 203, Soundaryalahari Apartments, Lawsons Bay colony, Visakhapatnam, 530017 MECON, 5th Floor, RTC Complex, Visakhapatnam AP 530020 INDIA [EMAIL PROTECTED],� [EMAIL PROTECTED] linux user No.205042 _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
