Linux: System and Hardware Cheat Sheet

# Display Linux system information

uname -a

# Display kernel release information

uname -r

# Display the linux kernel name

uname -s

# Get the linux kernel version

uname -v

# Get network node hostname

uname -n

# Get machine hardware architecture (i386, x86_64, etc.)

uname --m

# Get processor type

uname -p

# Get hardware platform

uname -i

# Get operating system information

uname -o

# Show which version of redhat installed

cat /etc/redhat-release

# Show how long the system has been running + load

uptime

# Show system host name

hostname

# Display the IP addresses of the host

hostname -I

# Show system reboot history

last reboot

# Show the current date and time

date

# Show this month’s calendar

cal

# Display who is online

w

# Who you are logged in as

whoami

# Get Hardware information

sudo lshw

# View the summary of your detailed hardware profile

lshw -short

# Print your hardware profile to an HTML file as a superuser

sudo lshw -html > [filename.html]

# Get CPU information

lscpu

# Get block device information

lsblk

# View much more detailed information about all the devices

lsblk -a

Leave a Reply

Your email address will not be published. Required fields are marked *