Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-15-2007, 12:16 PM   #1
Registered: Nov 2004
Posts: 81

Rep: Reputation: 15
Creating aliases in the .bashrc file

When logged in as root I sucessfully edited the /bashrc file in the /root DIR with a number of basic, yet handy, command alias shortcuts. these work fine, but when im logged in as a normal user they do not work.
There is no /bashrc file in my home DIR when logged in as the normal user, and i've tried copying it over from the root DIR (when root) but that hasn't made any differences, even though i've changed the permissions so the user is indeed the owner.

Where do normal users store their command aliases for the bash shell if not in the .bashrc file? or am i doing something wrong?

Old 01-15-2007, 01:03 PM   #2
Registered: Sep 2006
Distribution: Windows .. MUAHAHAHA
Posts: 66

Rep: Reputation: 15


Old 01-15-2007, 02:19 PM   #3
Registered: Nov 2004
Posts: 81

Original Poster
Rep: Reputation: 15
thanks .

/etc/profile worked a treat!
Old 01-15-2007, 02:28 PM   #4
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
That will set them for all users.

If you want some to have different aliases (or prompts etc.) then i would use $HOME/.bashrc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
bashrc Aliases don't work soren625 Linux - Newbie 10 01-27-2005 08:59 AM
making aliases - no bashrc file disorderly Linux - Newbie 9 09-27-2004 04:57 PM
creating aliases to run file Squeak2704 Linux - Software 3 04-28-2004 12:40 PM
aliases in .bashrc file davalos Linux - Newbie 7 08-21-2003 01:03 PM
.bashrc aliases Crashed_Again Linux - General 8 01-30-2003 06:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration