Article:
  An Introduction to Tiger Terminal, Part 4
Subject:   .bash_profile...
Date:   2005-09-18 13:12:55
From:   werkflow
I have two differents between this article and my Tiger-Installation:


1. .bash_profile never exists in my home. I did not delete it.
2. When I create .bash_profile and type "echo $PATH" in the Terminal.app, I only geht my new ~/Docuements/scripts-Directory. Even no binarys will work without "/bin/...".


Any idea?

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • .bash_profile...
    2005-09-18 18:25:56  norburym [View]

    1. The .bash_profile might not exist if you haven't been following this series from part one (where we created the file) or if you have not used the terminal before. If it wasn't there when you started, it's nothing to worry about.

    2. From the command line, type:
    $cd /etc/
    $ls
    You should see a file in there called profile and another file called bashrc. Open profile with nano.
    $nano profile
    You should see something like this:
    # System-wide .profile for sh(1)

    PATH="/bin:/sbin:/usr/bin:/usr/sbin"
    export PATH

    if [ "${BASH-no}" != "no" ]; then
    [ -r /etc/bashrc ] && . /etc/bashrc
    fi

    The info in this file states the default bash PATH. It then instructs bash to read the /etc/bashrc file. Next, bash reads the following, in order:
    ~/.bash_profile
    ~/.bash_login
    ~/.profile
    If it finds the first file, it will stop. If it doesn't find that one, it will continue on down the list.