LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-12-2009, 09:16 PM   #1
vanna
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
Exclamation terminal not opening up : accidentally modified its custom command


An improper shutdown of my linux machine led to the following command prompt "bash3.00$" in the terminal .
In order to restore it back ,...i accidentally modified its custom command and wrote my current path . ..by editing current profile. (doubled my troubles )
I am using Red Hat..please help me out
 
Old 03-12-2009, 10:47 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by vanna View Post
i accidentally modified its custom command and wrote my current path . ..by editing current profile. (doubled my troubles )
Will you explain a little better what you did and post a screenshot or somethnig.
Have you tried to reinstall gnome-terminal?Can you login as root.If you can run
Code:
usermod -s /bin/bash vanna
if your username is vanna,maybe that will do.
 
Old 03-12-2009, 11:59 PM   #3
vanna
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Original Poster
Rep: Reputation: 0
thanks alan

In the terminal window
i went to edit > current profile > title & command
and in custom command entered the path name i.e. "[vanna@linux ~] $" that i had desired to be displayed on the terminal prompt instead of "bash-3.00$"
after this .....the terminal simply crashed
every time i tried opening it ....it would just not open

i looked further through root ..that in my home path ...the .bashrc file was missing. and copied it in the said location ...which solved the problem.

however i am still wondering why did it happened?
 
Old 03-13-2009, 04:36 AM   #4
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Improper shutdown can cause totaly unusable system,so you can consider yourself lucky... .
Well,if you want to go deeper into this,will you create new user and then post if that user have a .bashrc file in his directory.You can post all files in your home directory and from new user home directory also,that have bash in the name.I don't use Red Hat but it might have /etc/bashrc file or similar wich is default for all users on the system and actually all of the users .bashrc files are the same as bashrc file in /etc directory but there might be no bashrc files at all in /home directory,it all depends on the system.
I think that Bash prompt variable was damaged on shutdown so it changed to bash-3.00$ on restart and when you tried to fix it you damaged few more variables,but when you added good .bashrc file to your home directory things started to work.
Shell variable-The full pathname to the shell is kept in this environment variable. If it is not set when the shell starts, Bash assigns to it the full pathname of the current user's login shell and I guess you just didn't have your shell.
You might wanna read this short tutorial.

Last edited by alan_ri; 03-13-2009 at 08:15 PM.
 
Old 03-13-2009, 06:07 PM   #5
vanna
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Original Poster
Rep: Reputation: 0
:)

thanks again Alan...
for giving me an insight into the workings of linux...it really improved my understanding.
i will read through the reference u gave me too
 
  


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
text editor is not opening up: modified custom command vanna Linux - Newbie 2 03-10-2009 11:57 PM
Opening VLC with the terminal line so the terminal will go back to normal baldurpet Linux - Newbie 3 01-14-2009 10:57 AM
accidentally modified xorg.conf TheStupid Linux - Hardware 3 08-19-2007 04:00 AM
Error when opening files with custom command in Gnome deejross Linux - Newbie 2 12-21-2005 11:50 AM
Opening a new terminal from Fluxbox menu (or another terminal) hallamigo Linux - Software 1 05-02-2004 04:32 AM


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