![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| $PWD shows absolute path vs path w/symbolic links | kornshellmaven | Shell Programming and Scripting | 3 | 06-13-2007 12:15 PM |
| getting full path from relative path | polypus | Shell Programming and Scripting | 4 | 03-25-2007 12:08 PM |
| how to check the actual path instead of link path | reldb | UNIX for Advanced & Expert Users | 4 | 10-04-2006 09:55 AM |
| vi - replacing a relative path with absolute path in a file | Yinzer955i | UNIX for Dummies Questions & Answers | 2 | 09-07-2006 11:47 AM |
| cc path problem - no acceptable path found | kendokendokendo | UNIX for Dummies Questions & Answers | 2 | 09-12-2005 09:52 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Modify Path
Hi,
This is certainly a simple question, but I have yet to receive sufficient info concerning it. I am using BASH on a Powerbook G4 running Leopard. - I would like to permanently add a directory to my path. How do I do this? - I understand that I can view my path by: echo $PATH. Is there a file where the path is displayed as well. Thank you very much for any help. Mike |
|
||||
|
Hi Yogesh,
I appreciate your help. Perhaps you can clear up one other path related issue. - Why modify the .bash_profile instead of the .bashrc? - Like I said I am using BASH on a Mac running Leopard. For the most part I use Terminal for my command line related work. However, sometimes I use X11 as well. I noticed that when i typed "echo $PATH" in a Terminal shell it returned a different series of directories than when I did the same in an X11 shell. I believe this is because those two programs check different environment files. Is that correct? A user in a different forum suggested that I modify my .bash_profile and .bashrc files. Can you tell what exactly is going on? Here are the contents: ##### .bash_profile: if [ -f ~/.aliases ]; then . ~/.aliases fi ulimit -Ss unlimited source /Users/msb65/seadas5.2/config/seadas.env ##### ##### .bashrc: if [ -f ~/.bash_profile ]; then . ~/.bash_profile fi ##### |
|
||||
|
Quote:
Quote:
Quote:
Code:
# Checks if the ~/.aliases file exists; if it does, sources it. if [ -f ~/.aliases ]; then . ~/.aliases fi # Something to do with file size limits. Mine doesn't have -Ss, so see # 'man ulimit' on your system.. ulimit -Ss unlimited # Includes some mac-specific environment variables, perhaps source /Users/msb65/seadas5.2/config/seadas.env Code:
# If .bash_profile exists, source it. if [ -f ~/.bash_profile ]; then . ~/.bash_profile fi |
| Sponsored Links | ||
|
|