linux information command - ghdrako/doc_snipets GitHub Wiki

uname -a

lsb_release:

The lsb_release command is used to display information about the Linux Standard Base (LSB) version, distributor ID, and release number. The LSB is a standard that defines the Linux operating system and ensures compatibility among different Linux distributions.

lsb_release id

To execute additional flags, we’ll make use of a flag commonly used by administrators to display the distributor indicator.

hostnamectl:

The hostnamectl command is used to display and modify the system hostname and to view various system settings such as the operating system architecture, boot mode, and system time zone. This command is useful for changing the hostname or viewing system settings without having to log in to the system as a root user.

set-hostname flag is used to set the system hostname to a specified value.