\H in PS1 does not display fqdn
Carsten Aulbert
carsten.aulbert at aei.mpg.de
Sat Dec 25 09:46:44 UTC 2010
Hi Joe
On Saturday 25 December 2010 07:30:05 Joe McDonagh wrote:
> \H is supposed to show the FQDN in bash's PS1, however it shows the
> short hostname. Works perfectly fine in OBSD and RHEL. Any ideas why
> Ubuntu would be different?
Is that true?
my current bash man-page states:
PROMPTING
[...]
\h the hostname up to the first `.'
\H the hostname
[...]
which would make sense that \H would be the FQDN, but this is not required.
I've just checked it on a CentOS 5.3 machine and \H is there also only the
host name, NOT the FQDN.
Cheers
Carsten
More information about the ubuntu-server
mailing list