LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-08-2004, 04:24 AM   #1
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: CLFS
Posts: 515

Rep: Reputation: 36
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.
 
Old 10-08-2004, 05:34 AM   #2
Read_Icculus
Member
 
Registered: Oct 2002
Distribution: MDK 9.2, Debian
Posts: 74

Rep: Reputation: 16
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:
 
1 members found this post helpful.
  


Reply


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
Path of xinit; window managers location; root's home; frankie_DJ Solaris / OpenSolaris 4 08-02-2005 03:46 AM
how to replace a certain location in a file with a certain value johnson_steve Linux - Software 1 06-22-2005 02:29 AM
How to show your location / path? Echo Kilo Linux - General 2 12-19-2004 01:40 PM
File location problem Wynand1 Linux - Newbie 3 09-15-2004 04:06 AM
PATH Location Odd_Bloke Linux - Newbie 4 08-27-2003 04:17 PM


All times are GMT -5. The time now is 10:19 AM.

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