Linux Shell Prompt turns to this -:/#

edited October 8 in General Discussion

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

-:/ # hostname

-:/ #
Thank you.

Comments

  • malcolmlewismalcolmlewis Knowledge Partner

    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?

  • 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
    -:~ #

  • malcolmlewismalcolmlewis Knowledge Partner

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

  • 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...

Sign In or Register to comment.