linux - Hostname is not displayed appropriately on command prompt & syslog messages -


I try to set my hostname 0.6.0.07252014 , but when I press the command prompt Seeing message on syslog, it is not displaying properly.

The host name is entered: 0.6.0.07252014

Command Prompt Output: Root @ 0 ~ $

I should look like an output: Root@0.6 .0.07252014 ~ $

Can anyone tell me how to do it.

Hostname File:

  Prompt & gt; Cat / etc / hostname 0.6.0.07252014  

syslog file output:

cat / var / log / messages:

Output: 28 July 15 : 55: 27 user. Info ...

expected output: 28 July 15:55:27 0.6.0.07252014 user.info ...

I believe that "\ h" is in your PS1 environment variable, and it takes 0 as your hostname Will replace it with "\ H", which will display a full hostname.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -