LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-23-2008, 01:28 AM   #1
narendra1310
Member
 
Registered: May 2008
Posts: 41

Rep: Reputation: 15
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....
 
Old 05-23-2008, 02:17 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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.
 
Old 05-23-2008, 02:22 AM   #3
Jderu_de_MM
LQ Newbie
 
Registered: Jan 2006
Posts: 12

Rep: Reputation: 0
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
 
Old 05-23-2008, 07:47 AM   #4
narendra1310
Member
 
Registered: May 2008
Posts: 41

Original Poster
Rep: Reputation: 15
Yeah I tried what you said

Quote:
Originally Posted by bigrigdriver View Post
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
 
  


Reply



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
Environmental Variables danglingpointer Slackware 13 01-06-2005 12:36 AM
Using Bash Script for Exporting and Returning Environmental Variables Jicksta Programming 3 12-04-2004 04:14 PM
environmental variables msound Programming 0 08-21-2004 07:06 PM
environmental variables? blackzone Linux - General 1 08-06-2004 03:44 AM
environmental variables mbhenry Linux - General 6 09-18-2003 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:22 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
Open Source Consulting | Domain Registration