get system info linux code example

Example 1: pc specs linux command

# PC Specs
$ sudo lshw -short

Example 2: linux command system info

tecmint@tecmint ~ $ uname -a

Linux tecmint.com 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Example 3: Show server info linux

Linux Command :
>>>> ping (domain name)
	>>>>// server ip
>>>> whois (server ip)
	>>>>// server info

Example 4: linux print system info

Command is: uname -a

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.10.17-v7+ #1403 SMP Mon Feb 22 11:29:51 GMT 2021 armv7l GNU/Linux

Tags:

Misc Example