🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #47840

Re: Newbie question : on alias's under RH5.2

#47840
From: Terry Porter
Date: Sat, 26 Dec 1998 00:00
46 lines
2259 bytes
On Fri, 25 Dec 1998 21:33:55 +1100, Paul Clyne <pclyne@idx.com.au> wrote:

>	I have added an alias (la="ls -la") command to my /etc/bashrc file 
>and this seems to work fine when I log in as root.  However when I log as 
>my normal self this alias is ignored.
??
>
>	My (limited) understanding of the bashrc files is that by setting 
>an alias in this file, everyone on the system would get to 'use' this 
>alias.
>
This is correct.
>	I realize that I could create a .bashrc in my home directory, but 
>what if I had several (hundred ?) users, how could I make a global 
>setting take effect.
Your right again, this is what /etc/bashrc is for
>
>	I tried some clever things (well being a newbie, I thought they 
>were) like coping the the .bashrc profile from the root account to my 
>home directory, still didn't work.
Did you log out, then back in again, after the change??

> Thinking that the reason it didn't 
>work was to do with my access rights, I chmod'ed (?) the new .bashrc file 
>to be 777.  Still no joy.
>
>	I notice the if....fi section of the .bashrc file and my thinking 
>was that this statement is saying if there is a file /etc/bashrc then 
>execute it.  If my understanding is correct and I added my alias to the 
>/etc/bashrc files then why doesn't it work ?
It should !
>
>	Hopefully somebody can shed some light..  (please be gentle, I'm 
>still only new to Linux)
Are we really that cruel to newbies ????
I'm only like a pit bull to windoze fudders :-)
>
>	Thanks in advance.
Welcome

terry
-- 
**** To reach me, use tjporter@odyssey.apana.org.au ****
   My Computer is powered by GNU-LINUX, and has been 
 up 6 days 1 hour 22 minutes
..........NOTE Spam protection in use...................
Technical Details
Message-ID: <slrn789185.ol.tjporter@gronk.apana.org.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <MPG.10ee1056e7313c2b989688@news.idx.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,fb25bdb91955f66d
X-Google-Attributes: gid102983,public
From: tjporter@no-spam.au (Terry Porter)
Subject: Re: Newbie question : on alias's under RH5.2
Date: 1998/12/26
Message-ID: <slrn789185.ol.tjporter@gronk.apana.org.au>
X-Deja-AN: 425878127
References: <MPG.10ee1056e7313c2b989688@news.idx.com.au>
Organization: APANA Western Australia (http://www.wa.apana.org.au/)
Reply-To: No-Spam
Newsgroups: aus.computers.linux