Results 1 to 2 of 2

Thread: BASHRC

  1. #1


    I have been doing some reading, trying to figure out how to write my own .bashrc file so I can use my familiar aliases. From what I gather, the ~/.bashrc is user specific, and the /etc/bashrc is system wide. Is this true? I tried to make a simple file to use as an /etc/bashrc file, and the system would not read it. So I junked it. I read somewhere that you can also put the information in the /etc/profile file to make it system wide, but I am not sure if I need some header information, or it I can just add lines for aliases... Any ideas?
    Asus A8V Deluxe Mobo
    AMD Athlon64 X2 4400 -939
    2GB Crucial DDR3200 Dual-Channel
    ATi AiW 9800 Pro 128DDR
    Audigy2 ZS
    Sony DRU-810 DVD+RW DL
    3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
    1 x Maxtor MaxLine SATA 120Gb 16Mb Cache

  2. #2


    my .bashrc says:
    # Source global definitions
    if [ -f /etc/bashrc ]; then
    . /etc/bashrc

    so maybe you need that in there as well

    although... my .bash_profile sources .bashrc in the same way
    So it looks like bash_profile is loaded first.
    I guess it doesn't really matter which file you put it in

Similar Threads

  1. Slackware .bashrc
    By shebang in forum Linux - General Topics
    Replies: 4
    Last Post: 03-29-2004, 04:31 AM
  2. profile and bashrc files
    By imported_LinuxGuy in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 05-28-2002, 05:11 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts