Grokbase
Topics Posts Groups | in
x
[ help ]

Re: Where is the file that sets aliases?

View PostFlat  Thread  Threaded | < Prev - Next >
William L. Maltby Re: [CentOS] Where is the file that sets aliases?
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Mon, 2008-11-10 at 20:11 +0000, Anne Wilson wrote:
> On Monday 10 November 2008 19:56:52 Anne Wilson wrote:
> > On Monday 10 November 2008 19:45:32 Joshua Baker-LePain wrote:
> > > On Mon, 10 Nov 2008 at 7:42pm, Anne Wilson wrote
> > >
> > > > Looking back, I still can't see it, Kai. I remember being told to look
> > > > in ~/.bashrc.
> > >
> > > If you're root (why are you logging in as root?), then ~ *is* /root.
> >
> > I wasn't - that's the whole point. That's why I didn't find it.
> >
> I guess that the OP thought I was when he said that, though

Helped by circumstances. _Normally_, the default install has those
aliases only assigned for root, due to the great risk to the system.

So it would be a natural assumption. As usual "assume" has its risks.


>
> Anne
> <snip>

--
Bill

_______________________________________________
CentOS mailing list
[email protected: C...@centos.org]
http://lists.centos.org/mailman/listinfo/centos

Thread : Where is the file that sets aliases?
1)
Anne Wilson I was having a problem in a shell script that turned out to be cp being aliased to 'cp -i'. Not a...
2)
Mark Hull-Richter Try /etc/profile. mhr
3)
Anne Wilson That doesn't appear to define cp, l, ll, ls, mv, rm or which, all of which are listed by the...
4)
Ignacio Vazquez-Abrams ~/.bashrc FTR, you can use \cp to get around this.
5)
Anne Wilson That seems to be the place to add user-specific ones, but where are the global default ones? I was...
6)
Ignacio Vazquez-Abrams All global default files are in /etc/skel.
7)
William L. Maltby /etc/bashrc But be aware that root-specific ones are here on 5.x # grep alias .bashrc # User...
8)
Anne Wilson I'm sorry, but I just can't understand why I can't find these Anne
9)
Mark A. Lewis /root # .bashrc # User specific aliases and functions alias rm=3D'rm -i' alias cp=3D'cp -i' alias...
10)
William L. Maltby Local mods somewhere in the past? Missed update? # lsb_release LSB Version:...
11)
John R Pierce bash runs... /etc/profile /etc/bashrc and $HOME/.bash_profile or $HOME/.bash_login or...
12)
Anne Wilson That's exactly what I was looking for, thanks. Anne
13)
Kai Schaetzl Anne Wilson wrote on Sun, 9 Nov 2008 09:51:16 +0000: That was already told very early on, but you...
14)
Anne Wilson Looking back, I still can't see it, Kai. I remember being told to look in ~/.bashrc. Still, the...
15)
Joshua Baker-LePain If you're root (why are you logging in as root?), then ~ *is* /root.
16)
Anne Wilson I wasn't - that's the whole point. That's why I didn't find it. Anne
17)
Anne Wilson I guess that the OP thought I was when he said that, though Anne
18)
William L. Maltby Helped by circumstances. _Normally_, the default install has those aliases only assigned for root,...
19)
Anne Wilson Well, it might have been painful at the time, dealing with this and with the damage on the box...
spacer
View PostFlat  Thread  Threaded | < Prev - Next >