LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Few commands not found after exporting environmental variables in the system (https://www.linuxquestions.org/questions/linux-newbie-8/few-commands-not-found-after-exporting-environmental-variables-in-the-system-644216/)

narendra1310 05-23-2008 01:28 AM

Few commands not found after exporting environmental variables in the system
 
Hi

I need to set the environmental variables. I did it through ./bashrc file by exporting needed variables. after that i restarted the system using command:

#/etc/init.d/nfsserver restart

.After this now i am facing command not found problem for few commands like clear, make, etc....

bigrigdriver 05-23-2008 02:17 AM

PATH is one of the bash environment variables. If you changed your PATH variable, the the path to the commands you want to use is no longer in the search path. You will have to add the path to those commands back into your PATH variable.

Note that the commands will still work if you give the full path to the executable file in the command line.

Jderu_de_MM 05-23-2008 02:22 AM

Check the file permition
 
Hello

Check the file permition with
Code:

ll /etc/init.d/nfsserver
if not set to execute (something like this)
Code:

-rw-------  1 root    root ...
Change the rights over ntfsserver
Code:

chmod u+x /etc/init.d/nfsserver
Oh and one more thing you need to be root.

Good Luck

narendra1310 05-23-2008 07:47 AM

Yeah I tried what you said
 
Quote:

Originally Posted by bigrigdriver (Post 3162148)
PATH is one of the bash environment variables. If you changed your PATH variable, the the path to the commands you want to use is no longer in the search path. You will have to add the path to those commands back into your PATH variable.

Note that the commands will still work if you give the full path to the executable file in the command line.

Yeah I tried what you said and it is working now .

Thanks


All times are GMT -5. The time now is 05:11 PM.