viernes, 14 de junio de 2019

Getting system info

Sometime you probably need to know some details for your systems as the linux distribution and version, type of CPU, etc.
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
...

If you need OS information, you have it on /etc/os-release.

$ 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

How to save a remote server SSL certificate locally as a file?

I found this answer following answer on StackExcahnge and it works perfect. Enjoy! "A quick method to get the certificate pulled and...