LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-28-2010, 12:07 AM   #1
tarunchawla
Member
 
Registered: Mar 2010
Location: New Delhi,India
Distribution: Ubuntu 14.04
Posts: 117

Rep: Reputation: 3
Environment variable


I am using ubuntu 9.10,last night I changed the environment variable for newly installed java. I open /etc/environment file and write the export PATH=$PATH:/home/tarun/jdk1.6.0_18/bin
I saved it but was unable to login again.when I start the linux in recovery mode in terminal and login it shows that /usr/bin and various other paths are not included and show some eror message. When i run echo $PATH,It shows $PATH:/home/tarun/jdk1.6.0_18/bin and no other path variable.
pleasw tell me how to reset path variable to restore them into their original state using terminal,It is not accepting commands like sudo and others and only java , javac and other realted to java are running properly.
 
Old 03-28-2010, 12:19 AM   #2
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 3,118

Rep: Reputation: 549Reputation: 549Reputation: 549Reputation: 549Reputation: 549Reputation: 549
export PATH='/home/user/bin:/usr/bin:/usr/local/bin:/bin'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
keep environment variable manelameur Ubuntu 13 02-06-2010 12:01 AM
!! environment variable !! sonu kumar Linux - Newbie 7 11-07-2009 03:59 AM
Environment variable.. manomohan Programming 1 02-27-2007 12:27 AM
environment variable gamor Linux - Newbie 4 04-30-2005 06:28 PM
environment variable mimi Linux - General 2 04-10-2002 08:45 AM

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

All times are GMT -5. The time now is 07:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration