LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PATH file location (https://www.linuxquestions.org/questions/linux-newbie-8/path-file-location-240147/)

corbis_demon 10-08-2004 04:24 AM

PATH file location
 
Hi,
i'd like to know where is the PATH file stored.Coz I just can't seem to get my system to accept any PATH's.I tried various options like
PATH="$PATH:/opt/schily/bin"
export PATH

but it just doesn't accept it.What could be the problem.Can I edit the file manually?Please advise.

Read_Icculus 10-08-2004 05:34 AM

at the console "echo $PATH" will show you all of the folders that are in your PATH, to add more folders to your PATH, just edit your .bashrc file, this is in your home directory. It should look something like this -

Code:

[shane@x1-6-00-07-e9-bd-83-cb shane]$ cat .bashrc
# .bashrc

# User specific aliases and functions

PATH=$PATH:/usr/java/j2re1.4.2_04/bin:

JAVA_HOME=/usr/java/j2re1.4.2_04/bin

alias owndir='find -type d -exec chmod -v 0755 {} \;'
alias ownfiles='find -type f -exec chmod -v 0644 {} \;'
alias m='mc -b'
alias pss='ps -A u'
alias fingerprint='metaflac --show-md5sum'
alias sbecheck='shntool len'

export PATH
export JAVA_HOME

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

To add to your path just edit this file and add a path after the ":" part on the "PATH" line. Like this -


Code:

PATH=$PATH:/usr/java/j2re1.4.2_04/bin:/usr/local/INSTALLED_STUFF:


All times are GMT -5. The time now is 06:10 PM.