uname -a
Display Linux system information
uname -r
Display kernel release information
cat /etc/redhat-release
Show which version of Red Hat installed
lsb_release -a
Show which version of Ubuntu installed
uptime
Show how long the system has been running + load
hostname
Show system host name
hostname -I
Display all local IP addresses of the host
last reboot
Show system reboot history
date
Show the current date and time
cal
Show this month’s calendar
w
Display who is online
whoami
Who you are logged in as