Jump to content

Bash question


arriagga
 Share

Recommended Posts

holA (hi)

 

i did a fresh install of ml9 (due to a problem i had), and now my konzole at the pront only shows bash$, if al login as a root it shows me the directory where i am and the user

 

this is not the first time it happens to and i happened before (sometimes when i do fresh install it is ok and sometimes not)

 

can anyone tell me how can i change that :?:

 

ths :!:

Link to comment
Share on other sites

a) first check that the login shell is /bin/bash instead of /bin/sh:

[arusabal@localhost ~]$ awk -F: '/USER/ {print $NF}' < /etc/passwd

/bin/bash

[arusabal@localhost ~]$

Where USER is your user name (the one that shows that werid prompt)

if it is /bin/sh, then change it to /bin/bash editing the file /etc/passwd

 

B) Check /etc/bashrc, it must contain code referring to PS1 (variable that defines the pormpt)

 

c) As a last resource, edit your user's .bashrc and place a something like this:

PS1="[u@h W]$ "

export PS1

 

Espero que mi respuesta le haya ayudado ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...