Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-28-2010, 12:07 AM   #1
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
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,480

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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration