module System

Defined in:

unix/uname.cr

Class Method Summary

Class Method Detail

def self.machine : String #

Returns the machine hardware name.


[View source]
def self.model : String #

Returns the hardware model name.


[View source]
def self.nodename : String #

Returns the nodename, i.e. the name it's known by on the network. Typically identical to the hostname.


[View source]
def self.release : String #

Returns the operating system release.


[View source]
def self.sysname : String #

Returns the operating system name.


[View source]
def self.uname : System::Uname #

Returns a System::Uname struct that has the following members:

  • sysname
  • nodename
  • release
  • version
  • machine

[View source]
def self.version : String #

Returns the operating system version.


[View source]