![]() |
|
|
|
|
|||||||
| 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| .bash_profile access related. | sriram_r | UNIX for Advanced & Expert Users | 6 | 02-14-2008 02:43 AM |
| Unrecognized Path in .bash_profile | monkfan | UNIX for Dummies Questions & Answers | 1 | 08-31-2007 09:36 PM |
| numbers on permanently through .bash_profile | zorrokan | UNIX for Dummies Questions & Answers | 3 | 08-22-2007 03:28 AM |
| Howto Simplify Multiple Exports in .bash_profile | monkfan | Shell Programming and Scripting | 1 | 03-30-2006 04:49 AM |
| Howto Simplify/Factorize Exports in .bash_profile | monkfan | UNIX for Dummies Questions & Answers | 1 | 03-29-2006 08:59 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Editing $PATH in .bash_profile
Hello,
I'm trying to add my bin directory to my path by editing the .bash_profile. I'm adding the following: PATH=$HOME/bin But then when I type in "echo $PATH" my bin directory is not added. Do I need to do something to make this take affect or am I going about this wrong. Thanks! |
| Forum Sponsor | ||
|
|
|
|||
|
Uh Oh, I've really done it this time. That Path statement is supposed to read: PATH=$PATH:$HOME/bin. I left out the $PATH portion. What that means is, my home directoy cannot locate any of the commands, including VI to edit the .bash_profile.
I do not have root access on this box, but I do have access to another home directory. So, is it possible to login from that directory and edit the .bash_profile? |
|
|||
|
Thanks, that worked.
OK, I'm back to normal, but still baffled by an original problem I had. I'm trying to run a script out of my /home/atama/bin directory. When I type the scripts name (test) from home/atama, I get nothing. But when I type ./bin/test the script runs. /home/atama/bin is in my path so why the heck isn't this working? The file is executable. Here's a snap shot of "echo $PATH": /usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/spectro:.:/home/atama/bin Does anyone know what's going on here? |
| Thread Tools | |
| Display Modes | |
|
|