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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.