Returns the hostname from LinuxStat::Sysconf.hostname.
The return type is String. If the info info isn’t available, it will return an empty String.
117 118 119
# File 'lib/linux_stat/os.rb', line 117 def hostname LinuxStat::Sysconf.hostname end