Doesn't work here :# hostname --fqdnAhh. I wonder how portable this is. We could certainly make the kernel
shanghai.hopto.org
build use "hostname --fqdn" if that works across all versions.
That code hasn't changed in a looong time, and I suspect that "--fqdn"
didn't exist back when..
cartman@southpark ~ $ hostname --fqdn
hostname: invalid option -- -
Try `hostname --help' for more information.
cartman@southpark ~ $ hostname --version
hostname (GNU coreutils) 5.96
20:56 shanghai:~ > hostname --version
net-tools 1.60
hostname 1.100 (2001-04-14)
Interesting.