🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #47968

Newbie question : on alias's under RH5.2

#47968
From: Paul Clyne
Date: Fri, 25 Dec 1998 00:00
41 lines
2036 bytes
Good list people,

	I have a question/problem that I can not seem to find and answer 
for, so can someone please tell me what I'm doing wrong ??.

	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.

	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.

	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.  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 ?

	Hopefully somebody can shed some light..  (please be gentle, I'm 
still only new to Linux)

	Thanks in advance.

	PS : please reply to my mail account (pclyne@idx.com.au) as well 
as the newsgroup, I would hate to miss the answer.





	
Technical Details
Message-ID: <MPG.10ee1056e7313c2b989688@news.idx.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,fb25bdb91955f66d,start
X-Google-Attributes: gid102983,public
From: pclyne@idx.com.au (Paul Clyne)
Subject: Newbie question : on alias's under RH5.2
Date: 1998/12/25
Message-ID: <MPG.10ee1056e7313c2b989688@news.idx.com.au>
X-Deja-AN: 425775753
X-Complaints-To: abuse@telstra.net
X-Trace: nsw.nnrp.telstra.net 914613472 203.14.30.196 (Sat, 26 Dec 1998 06:17:52 EST)
Organization: Interrupt Zero
NNTP-Posting-Date: Sat, 26 Dec 1998 06:17:52 EST
Newsgroups: aus.computers.linux