LinuxQuestions.org
Register a domain and help support LQ
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 12-23-2002, 12:27 PM   #1
macshark
LQ Newbie
 
Registered: Dec 2002
Posts: 18

Rep: Reputation: 0
Unhappy bash and kde not working


after installing the java sdk from sun, and I set the path in the etc/profile, kde does not start up correctly, and in terminal, basic functions like "ls" and "reboot" are invalid commands.

i can't even run emacs or pico to edit the profile file. i can get to the command line, but it seemed that the bash was not fully loaded.

any ideas on how this can be solved? thks.
 
Old 12-23-2002, 02:12 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
I guess you did something like:
export PATH=JAVA_PATH_THERE
instead of
export PATH=$PATH:JAVA_PATH_THERE
Edit /etc/profile and change it. Before you do it:
export PATH=/sbin:/usr/sbin:/bin:/usr/bin
It should be enough to make most of the things working.

Why?
When you run
export PATH=/usr/local/bin
you chnage your PATH to '/usr/local/bin'. It's not what you should do, because you usually want to keep old PATH and only add a new directory to it.
export PATH=$PATH:/usr/local/bin
adds /usr/local/bin to your PATH.

Last edited by Mara; 12-23-2002 at 02:15 PM.
 
  


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
Many times Bash is not working why? sathyguy Linux - Newbie 6 10-11-2005 02:15 PM
Bash scripts not working anticuchos Linux - Newbie 5 09-25-2005 10:40 PM
bash / sh not working (not recognized?) hallamigo Linux - Newbie 5 04-12-2004 07:08 PM
Bash script not working AMMullan Linux - General 2 09-28-2003 08:10 PM
bash shell not working? magyartoth Linux - General 4 04-09-2002 09:56 PM


All times are GMT -5. The time now is 08:44 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