% GET-PLATFORM(1) Version 3.2.1 | Scripts Documentation % Georg Voell - georg.voell@standby.cloud % (c)2024 Standby.cloud NAME ==== **get-platform** - (BASH Script) Get some infos about the platform (OS) and machine. SYNOPSIS ======== | **get-platform** \[_options_] \[_keys_] DESCRIPTION =========== Get some infos about the platform (OS) and machine. Options ------- -h, \--help          : Displays helptext. -v, \--version          : Displays the version of the script. -o, \--output _string_         : Output format: _string_ can be "plain" (default), "keys", "json", "tsv", "line" or "table". Keys ------- Optional - Select the keys you want to display. Use a colon (default) or tab or comma separated string for keys e.g. os         : Displays the Operation System e.g. "Linux", "Darwin", "SunOS". id         : Displays the id e.g. "ol", "FreeBSD" EXAMPLES ======== pname=`**get-platform** pretty_name` echo "$pname" # will display e.g. "Oracle Linux Server 7.4" EXIT CODES ========== 01: Unknown or wrong parameter. 02: Unsupported OS. 03: Unknown key. SEE ALSO ======== **get-ip**(1), **check-port**(1), **install-scripts**(1)