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.
121 122 123
# File 'lib/linux_stat/os.rb', line 121 def hostname LinuxStat::Sysconf.hostname end