When using "\H" in the PS1 prompt value bash is not displaying the FQDN but instead only the short form hostname. This is the same as "\h".
Issue has also been noted at http://serverfault.com/questions/296970/bash-prompt-on-ubuntu-fqdn-h-same-as-hostname-h https://answers.launchpad.net/ubuntu/+source/bash/+question/200900
This appears related to /etc/hostname only having the host and not the FQDN.
Bash should obtain the \H value from somewhere other than /etc/hostname.
When using "\H" in the PS1 prompt value bash is not displaying the FQDN but instead only the short form hostname. This is the same as "\h".
Issue has also been noted at serverfault. com/questions/ 296970/ bash-prompt- on-ubuntu- fqdn-h- same-as- hostname- h /answers. launchpad. net/ubuntu/ +source/ bash/+question/ 200900
http://
https:/
This appears related to /etc/hostname only having the host and not the FQDN.
Bash should obtain the \H value from somewhere other than /etc/hostname.