\H in PS1 does not display fqdn
Nathan Stratton Treadway
ubuntu.lists at nathanst.com
Sun Dec 26 00:19:23 UTC 2010
On Sat, Dec 25, 2010 at 01:30:05 -0500, 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
What does "hostname --fqdn" show?
If that also gives you only the host name without a domain part, take a
look at the "THE FQDN" section of hostname man page, which includes an
explanation about how to configure the FQDN....
Nathan
More information about the ubuntu-server
mailing list