whoami

Function distro_os

Source
pub fn distro_os() -> OsString
đź‘ŽDeprecated since 1.5.0: use distro() instead
Expand description

Get the name of the operating system distribution and (possibly) version.

Example: “Windows 10” or “Fedora 26 (Workstation Edition)”