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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...