This command line can be used to look up the operating system.

The command is here.

hostnamectl