Linux - NewbieThis 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
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.
Something unfortunate just happened. I was editing the bash file from my terminal and changed a source. After this I was no longer able to input commands for interpreting in the terminal..
In short, this doesn't show up: "user@user-laptop:$"
Yes, I can type. The bash file I edited was .bashrc and since i'm using an open-source program (ROS), i'm trying to redefine the path to my packages. I changed:
"source ~/.bashrc.ros"
to
"source ~/.bashrc"
I did this because it said the location ~/.bashrc.ros didn't exist.
Yes, I can type. The bash file I edited was .bashrc and since i'm using an open-source program (ROS), i'm trying to redefine the path to my packages. I changed:
"source ~/.bashrc.ros"
to
"source ~/.bashrc"
I did this because it said the location ~/.bashrc.ros didn't exist.
If you can and your .bashrc is messed up, you can try to source the file in /etc, usually /etc/bash_profile or /etc/bashrc will get you a normal prompt again. Then proceed in editing your users own .bashrc accordingly.
Hmm, it's not working. The terminal is acting as if i'm just typing, kind of like the editing program gedit. If i press enter, it just moves to a new line without doing anything. Even if I type /etc/bashrc
Hmm, it's not working. The terminal is acting as if i'm just typing, kind of like the editing program gedit. If i press enter, it just moves to a new line without doing anything. Even if I type /etc/bashrc
Open a new terminal. If you sourced it on the previous terminal, a new terminal will use the default file to source from. You can also try logging out and back in as well. Or try typing reset in the terminal and hitting enter.
Still no luck unfortunately. Nothing is getting me anywhere.. I tried all of those things.
Perhaps it's time to reboot into single user mode and restore the original .bashrc. Or if you are a regular user, just su (or sudo if you setup sudo) to become root to restore or create a useful .bashrc file for the user.
But I can't use the command line.. I have a feeling I am stuck :S
Nope, booting into single user mode should allow you to fix this issue. Are you logged in as root and messed up root's .bashrc? If not, ctrl-alt-F2, login to console as root, fix issue for user. If you are root with no other created users, reboot into single user mode by passing single as an option on the grub line.
All i did was press ctrl-c to cancel any tasks running in the terminal. I did try going into single-user mode and resetting first, which may have had something to do with it. But the first thing I would suggest with this problem is pressing ctrl-c.
All i did was press ctrl-c to cancel any tasks running in the terminal. I did try going into single-user mode and resetting first, which may have had something to do with it. But the first thing I would suggest with this problem is pressing ctrl-c.
-Ian
Ah so it sounds to me like you were just stuck in a process running type mode.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.