These are some commands that could help you.
$ hostnamectl
Static hostname: YOURHOSTNAME
Icon name: computer-vm
Chassis: vm
Machine ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Boot ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Virtualization: vmware
Operating System: Ubuntu 16.04.5 LTS
Kernel: Linux 4.4.0-130-generic
Architecture: x86-64
$ uname -a
Linux YOURHOSTNAME 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
If you need hardware detailed info try with lshw:
$ lshw -short
H/W path Device Class Description
===========================================
system Computer
/0 bus Motherboard
/0/0 memory 7974MiB System memory
/0/1 processor Intel(R) Xeon(R) CPU E5-2670 v3 @ 2.30GHz
...
$ cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="7.5"
...
You can find more info on this link https://www.cyberciti.biz/faq/how-to-check-os-version-in-linux-command-line/.
Enjoy!
No hay comentarios:
Publicar un comentario