Member-only story
CyberSecurity Linux Command
May 2, 2021
This is the fourth week of Beginners Linux Commands. This week, I will share 10 commands that you can use to see the basic hardware information of the Linux system.
- dmesg = Display messages in kernel ring buffer
2. cat /proc/cpuinfo = Display CPU information
3. cat /proc/meminfo = Display memory information
4. free -h = Display free and used memory ( -h for human readable, -m for MB, -g for GB.)
5. lspci -tv = Display PCI devices
6. lsusb -tv = Display USB devices
7. dmidecode = Display DMI/SMBIOS (hardware info) from the BIOS
8. hdparm -i /dev/sda = Show info about disk sda
9. hdparm -tT /dev/sda = Perform a read speed test on disk sda
10. badblocks -s /dev/sda = Test for unreadable blocks on disk sda