Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Just starting to get the hang of Linux and when I booted up today I got this error message just before KDE start (same error when I try Gnome and failsafe)
Your session only lasted 10 seconds.....
~/bin/bash: line 1: id: command not found
~/bin/bash: line 1: id: command not found
~/bin/bash: line 1: id: command not found
~/bin/bash: line 12: :too many arguements
/usr/share/apps/switchdesk/Xclients.kde: line 2: exec: startkde: not found
The only thing I have done recently that I can think of that may have done this is editing a shell file. I was setting paths and must have made an error.
How do I get to the command line to fix this??? I tried to login to failsafe but that gave me a similar error.
but that was only for one user and not root. I'm still getting the same error. Think I may have also editied /etc/profile, but I only added paths to a java dir.
Well, that is the problem. It erases the path and replaces it with what you have. Comment out that line (# at the start), start a new xterm and you should have something like
env |grep PATH
yes, you need to change your path variable.
your path variable for a standard user should include:
/usr/bin
/usr/local/bin
/bin
and also:
/sbin
/usr/sbin
for root users. so just add them to your path variable, using the export command (use "whereis" to find where the path to a command such as export is)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.