Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 17th December 2011, 11:52 AM
sea's Avatar
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,607
linuxfirefox
Re: Problem with Terminal

Welcome, dont forget to mark the thread solved if that applies.
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb
Reply With Quote
  #17  
Old 20th June 2012, 11:18 AM
indikal Offline
Registered User
 
Join Date: Jun 2012
Location: Colombo, Sri Lanka
Posts: 1
linuxfirefox
Re: Problem with Terminal

I'm new to this forum but like to share how I fixed it.

I had the same issue when "su <userid>" and got following

bash: id: command not found
bash: id: command not found
bash: ls: command not found
bash: tty: command not found

When I check "echo $PATH" I got:

/usr/java/jdk1.6.0_24/bin:/usr/lib64/ccache:$JAVA_HOME/bin:$PATH

I finally found one entry in /etc/environment causing this errors. This contained:

export JAVA_HOME=/usr/java/jdk1.6.0_24
export PATH=$JAVA_HOME/bin:$PATH
export JDK_HOME=/usr/java/jdk1.6.0_24

The issue was with the second line but I do not know why. Once I commented it out all those error lines disappeared. May be PATH is not defined by the time "environment" is loading.
Reply With Quote
  #18  
Old 20th June 2012, 02:00 PM
sea's Avatar
sea Offline
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Helvetic Federation (Swissh)
Age: 33
Posts: 2,607
linuxchrome
Re: Problem with Terminal

I dont think one should mess with /etc/environment, unless you know EXACTLY what you do.
To add custom path variables, append the syntax you posted at the end of one of these files,
or plae a scriptfile in the folder:
Files:
  • /etc/bashrc
  • ~/.bashrc
  • ~/.bash_profile

Folders: (suggested)
  • /etc/profile.d/YOURSCRIPT-WITH-MODIFICATIONS.sh
__________________
Fedora Manual: http://docs.fedoraproject.org
Script-Tools: https://sourceforge.net/projects/script-tools/
sudo st tweak repo toggle fedora-rawhide ; st iso dl-fed -respin && st iso usb

Last edited by sea; 21st June 2012 at 12:48 AM.
Reply With Quote
  #19  
Old 21st June 2012, 07:31 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfirefox
Re: Problem with Terminal

Might be a context problem..

Normally I see this avoided by:

export PATH=${JAVA_HOME}/bin:${PATH}

Though the "...${PATH}" isn't usually needed.

Such errors are usually caused by a typo where the shell can't identify PATH as the environment variable, or is quoted such that the $ is not interpreted.
Reply With Quote
Reply

Tags
problem, terminal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminal Problem jawadah Using Fedora 4 3rd January 2007 05:35 AM
Terminal problem l sKn l Chris Using Fedora 3 6th November 2006 11:12 PM
Problem with Terminal? Ana_00 Using Fedora 1 11th June 2006 10:57 AM
terminal problem? tinbob Using Fedora 6 10th November 2005 04:34 PM


Current GMT-time: 10:25 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat