Problem with Prefixes

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
HerrZealot
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sat Dec 03, 2011 7:55 am

Problem with Prefixes

Post by HerrZealot »

I'm having a problem with my prefixes in telnet that's starting to get a bit on my nerves, basically from what I can tell it's citing in the prefix that I'm using the permissions of a file called "mono-addon" (Which is basically repository mono, because I'm lazy), and the hostname has changed all together to "-bash-4.1$". I have no idea what is causing this, I looked in the bashrc file and nothing there suggested this should happen.

This prefix appears on every single account and login into this VPS, a screenshot is below.

Image

Anyone have similar problems, and/or know how to fix this?
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Problem with Prefixes

Post by Edge100x »

That's called the command prompt and it's normally defined in /etc/bash/bashrc and potentially overridden in ~/.bashrc. It sounds like you may have installed a package that adjusted it for you.
HerrZealot
New to forums
New to forums
Posts: 2
Joined: Sat Dec 03, 2011 7:55 am

Re: Problem with Prefixes

Post by HerrZealot »

How do I go about restoring it?
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Problem with Prefixes

Post by Edge100x »

First check to see if it's defined in ~/.bashrc. If it is, just delete that line there, and let the default one show through.

If it overwrote your base one in /etc/bash/bashrc, you'd need to find a default copy of that file to replace it with. Or, reinstall your system.
Post Reply