Like for every thing, there are plenty of commands to check information about the hardware of your linux system.
Some commands report only specific hardware components like cpu or memory while the rest cover multiple hardware units.
This post takes a quick look at some of the most commonly used commands to check information and configuration details about various hardware peripherals and devices.
The list includes lscpu, hwinfo, lshw, dmidecode, lspci etc.
How much space do I have free on my Linux drive?
Managing disk space on a Linux server is an important task. For example, package manager applications notify you how much disk space will be required for an installation. For that information to be meaningful, you should know how much space your system has available.
#Show bootup messages:
#See CPU information:
#Display free and used memory with:
L#ist hardware configuration information:
#See information about block devices:
#Show PCI devices in a tree-like diagram:
#Display USB devices in a tree-like diagram:
#Show hardware information from the BIOS:
#Display disk data information:
hdparm -i /dev/disk
#Conduct a read-speed test on device/disk:
hdparm -tT /dev/[device]
#Test for unreadable blocks on device/disk:
badblocks -s /dev/[device]
#Show system information:
#See kernel release information:
#Display how long the system has been running, including load average:
S#ee system hostname:
#Show the IP address of the system:
#List system reboot history:
#See current time and date:
#Query and change the system clock with:
#Show current calendar (month and day):
#List logged in users:
#See which user you are using:
#Show information about a particular user:
#See free and used space on mounted systems:
#Show free inodes on mounted filesystems:
#Display disk partitions, sizes, and types with the command:
#See disk usage for all files and directory:
S#how disk usage of the directory you are currently in:
#Display target mount point for all filesystem:
#Mount a device:
mount [device_path] [mount_point]