Okay, let's back up here a second.

1)  If you want ot add an alias, let's do this right.

        a) Edit your ~/.bashrc, adding this line at the very bottom
           of the file:

        source ~/.aliases

2)  Create your ~/.aliases by opening your favorite editor.

        vim ~/.aliases
        alias l="ls -alF --color=yes |more"

        ** note **
        An alias will work with quotes (") or an apostrophe (').

This is the correct way about doing this.  Use this method before you start
editing /etc/profile, or /etc/bashrc.  The reason for this is that those files
access another file that you didn't seem to know about, and it's reading those
files first, since they're higher in the pecking order.

At a prompt, type this command:  type l

$ type l
l is aliased to `ls'

It's already alisted to that.  Editing my ~/.aliases to reflect the line of:

        alias l="ls -alF --color=yes |more"

$ source ~/.aliases
$ type l
l is aliased to `ls -alF --color=yes |more'

It's reading my ~/.aliases, which is what YOU want, and is behaving as it should.
So you know, these bash aliases are stored in /etc/profile.d/alias.sh.  That's where
the aliases for rm -i and more are kept.  I would not suggest editing those.  If you
don't like those things, change them in your ~/.aliases, but leave the sytem wide 
settings as they are.

SO... the reason why l is still giving you ls output is because you've edited the
wrong file and added your aliases.  Follow steps 1 and 2 above and your problem will
be fixed.
tdh

--
  --------------------------------------------------------------------
  T. Holmes  |  UNIXTECHS.org  |  [EMAIL PROTECTED]  |  UIN:  17021091
  --------------------------------------------------------------------
 |  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.
 | -- 
 | 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
 | 
 | Want to buy your Pack or Services from MandrakeSoft? 
 | Go to http://www.mandrakestore.com

  ------------------------------------------------------------------ 

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to