View previous topic :: View next topic |
Author |
Message |
stieizc n00b
Joined: 03 Oct 2012 Posts: 29 Location: China, Earth
|
Posted: Thu Oct 04, 2012 12:53 pm Post subject: Couldn't get .bashrc working |
|
|
I tried to alias rm as rm -iv under /root, but my box just wouldn't listen.
Here's my .bashrc:
http://bpaste.net/show/49283
How can I fix it? Many thanks ! |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Oct 04, 2012 2:19 pm Post subject: |
|
|
For some reason relating to minimalism, the root user's home directory doesn't have the standard files copied from /etc/skel. In order for .bashrc to be picked up in all cases, you need a .bash_profile file. As root, just do Code: | cp /etc/skel/.bash* /root | and then add your mods to the prototype .bashrc and you'll be all set.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
stieizc n00b
Joined: 03 Oct 2012 Posts: 29 Location: China, Earth
|
Posted: Sat Oct 06, 2012 6:55 am Post subject: |
|
|
John R. Graham wrote: | For some reason relating to minimalism, the root user's home directory doesn't have the standard files copied from /etc/skel. In order for .bashrc to be picked up in all cases, you need a .bash_profile file. As root, just do Code: | cp /etc/skel/.bash* /root | and then add your mods to the prototype .bashrc and you'll be all set.
- John |
Thank you very much! I'll give it a try soon. |
|
Back to top |
|
|
stieizc n00b
Joined: 03 Oct 2012 Posts: 29 Location: China, Earth
|
Posted: Sat Oct 06, 2012 3:01 pm Post subject: |
|
|
It works! Thanks a lot! |
|
Back to top |
|
|
|