# Linux Shell Prompt turns to this -:/#

**URL:** <https://forums.suse.com/t/linux-shell-prompt-turns-to-this/35312>\
**Category:** General Discussion\
**Created:** [October 8, 2020, 9:51am UTC](https://forums.suse.com/t/linux-shell-prompt-turns-to-this/35312 "2020-10-08T09:51:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jomar](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@Jomar](https://forums.suse.com/u/Jomar)\
**Post date:** [October 8, 2020, 9:51am UTC](https://forums.suse.com/t/linux-shell-prompt-turns-to-this/35312/1 "2020-10-08T09:51:58Z")

</div>

## We login to our Linux SLES 12 SP4 server and shell prompt turns to this, any advise. -😕 # uname Linux -😕 # hostname

-😕 #  
Thank you.

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [October 8, 2020, 12:23pm UTC](https://forums.suse.com/t/linux-shell-prompt-turns-to-this/35312/2 "2020-10-08T12:23:53Z")

</div>

Hi and welcome to the Forum 🙂  
Check the `.bashrc` and `.profile` files for the user (root) also what shell is in use `env | grep SHELL`?

---

<div class="post-metadata">

**Author:** ![Jomar](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@Jomar](https://forums.suse.com/u/Jomar)\
**Post date:** [October 9, 2020, 12:48am UTC](https://forums.suse.com/t/linux-shell-prompt-turns-to-this/35312/3 "2020-10-09T00:48:27Z")

</div>

Thanks for the reply, here it is,  
-:~ # env | grep SHELL  
SHELL=/bin/bash  
WINDOWMANAGER=env GNOME\_SHELL\_SESSION\_MODE=classic SLE\_CLASSIC\_MODE=1 gnome-sess ion --session gnome-classic  
-:~ #

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [October 9, 2020, 12:30pm UTC](https://forums.suse.com/t/linux-shell-prompt-turns-to-this/35312/4 "2020-10-09T12:30:11Z")

</div>

Hi  
So what is your expectation, for the hostname to be present?  
`<hostname>:~ #` rather than `-:~ #`?

---

<div class="post-metadata">

**Author:** ![Jomar](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@Jomar](https://forums.suse.com/u/Jomar)\
**Post date:** [October 12, 2020, 6:16am UTC](https://forums.suse.com/t/linux-shell-prompt-turns-to-this/35312/5 "2020-10-12T06:16:36Z")

</div>

thanks malcolm, this is now ok, i thought it was big problem, there a change in the transient hostname,  
tried the ff. command and Change Hostname then logoff then login it’s now ok,  
a. hostname  
b. /etc/hosts  
c. /etc/hostname  
thanks for the replies…
