Portal Home > Knowledgebase > Articles Database > Quick question about PATH shell variable...
Quick question about PATH shell variable...
Posted by Lancia, 07-25-2007, 10:59 PM |
OK, so I had a program (APF, actually) install its executable file in /usr/local/sbin/, so I went to add that directory to my PATH variable in .bashrc. I'm able to type commands to executables just fine in other directories, but for some reason I keep getting "command not found errors" from bash when I type in the name of the executable (apf), even when starting/restarting new instances of the shell. Here's my current PATH variable in .bashrc - have I overlooked something?
|
Posted by MaximSupport, 07-25-2007, 11:12 PM |
Dear Lancia,
Your PATH looks fine. Can you please issue following command and let us know what output you will get.
ls -al /usr/local/sbin/apf
Best Regards.
|
Posted by Lancia, 07-25-2007, 11:47 PM |
Tom, thanks for looking at my problem. Here's the output you requested:
|
Posted by MaximSupport, 07-26-2007, 04:10 AM |
Dear Lancia,
What is the user from which you are trying to execute apf command.
whoami
Best Regards.
|
Posted by Lancia, 07-26-2007, 06:35 PM |
Tom, I'm simply logged in as the user 'john'.
|
Posted by brianoz, 07-28-2007, 10:47 AM |
try: env | grep /usr/local/sbin
If no output, you probably changed your PATH but didn't re-export it.
Also, try the permissions on /usr/local/sbin:
ls -ld /usr/local/sbin
|
Add to Favourites Print this Article
Also Read