Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2005
    Nowhere and Everywhere

    A few questions about "bashrc"????

    Hello all,

    I've been digging around the doc's, manpages, etc..etc.., but I can't seem to find what I'm looking for. In Slackware-11, by default, there is no /etc/bashrc, /etc/bash_profile, and no ~/.bashrc. The only file like these available in Slack is "/etc/profile". Now in every tutorial I've read so far it says to put this in ~/.bashrc...
      if [ -f /etc/bashrc ]; then
            . /etc/bashrc   
    Does this mean that I need to create an /etc/bashrc file, or can I just ommit that line in my newly created ~/.bashrc ???

    Another question, what does this mean???
    export MINICOM="-c on"
    Also, if I wanted to change my CFLAGS or CXXFLAGS, would I put that in "/etc/bashrc" or in "/etc/profile" ???

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    West Yorks
    You don't have to create an /etc/bashrc. The file is read if it exists and if its not there, there is no problem.

    Is the minicom command not supposed to be
    export MINICOM="minicom -c on"
    According to the manual, using the -c flag enables colouring in the minicom program.

  3. #3
    Quote Originally Posted by southpaw
    Also, if I wanted to change my CFLAGS or CXXFLAGS, would I put that in "/etc/bashrc" or in "/etc/profile" ???

    You'd put an executable script with the required commands in, in /etc/profile.d/ and it would be sourced with every user login automatically.

    better than editing /etc/profile directly as this might get overwritten with new packages during upgrades etc.

  4. $spacer_open

Posting Permissions

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