LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   Broke my login shell. Fresh install. No GUI installed yet. (https://www.linuxquestions.org/questions/gentoo-87/broke-my-login-shell-fresh-install-no-gui-installed-yet-755177/)

bianchiaz 09-14-2009 04:52 PM

Broke my login shell. Fresh install. No GUI installed yet.
 
I have been searching high and low for an answer to this and I am unable to find anything.

This is what happened.

I am going through the book "From Bash to Zsh, Conquering the command line" and I wanted to check if I had installed the Zsh. I went into /bin and did an ls. I saw sh was hard linked to a shell and I typed in
Code:

(gentoo)# sh
Instead of zsh by mistake.
By doing that i messed something up. after typing that "sh" the prompt changed to this.....
Code:

sh-3.2#
all text went to black and white (no color as before)

I tried getting back to my regular prompt by entering in
Code:

sh-3.2#/bin/bash
I end up with this prompt
Quote:

(none) bin #
(none) bin #su
bash: no job control in this shell
I have no idea what I did.

When i reboot everything gets mounted...but I can not log in as my user or root and end up with the "sh-3.2#" prompt.

Let me add here. This is a fresh 2009 install using minimal CD
Pentium 3 Desktop.
I have not added any software yet.
Kernel version 2.6.30-r6
Zsh was never installed.

Regards,
Rick

Matir 09-14-2009 07:28 PM

Neither typing sh nor /bin/bash will cause any changes that persist over reboot. Might you have entered any other commands?

bianchiaz 09-14-2009 07:38 PM

Quote:

Might you have entered any other commands?
This happened three days ago and I am just getting back to this issue.

I do not remember entering any other commands. I remember doing sh and it kicked me into the shell prompt described above.

Is there any way to extract my command line history from that session? I am in a (chroot) environment off the cd.

Rick

bianchiaz 09-14-2009 09:40 PM

deleted


All times are GMT -5. The time now is 12:43 AM.