Linux - chapter-2: Hardware Commands
A Complete Guide to Hardware Related Commands in Linux

Software Engineer
we need to know linux commands before diving into DevOps concepts, as a DevOps engineer, it is necessary to acquire linux commands as it is a first and foremost skill to start with,
There are different categories of Linux commands. In the previous chapter, we learned about system commands. Now, in Chapter 2, we will dive deep into hardware commands. I will split the Linux commands into individual articles instead of covering everything in a single article.
2nd chapter is all about hardware commands:
as the name suggests, Hardware commands in Linux are commands that help you check, control, or get information about your computer’s physical parts (hardware) using the terminal.
Ram and CPU info:
lscpu: to get the complete info about cpu
cat /proc/cpuinfo: command to get cpu info using cat command
top: to know about server cpu utilization.
ps -aux: command to see running processors on linux system.
free: to know how much ram our server consumed and also to know the available ram (in kb)
free -m or cat /proc/meminfo: to know how much ram our server consumed and also to know the available ram (in mb)
free -g: to know how much ram our server consumed and also to know the available ram (in gb)
free -h: to know how much ram our server consumed and also to know the available ram (in human readable format)
free -g: to know how much ram our server consumed and also to know the available ram (in gb)
Memory Info:
df -h: how much ebs volume consumed (to check the storage)
du -sh *: It displays the size of each file and folder in the current directory.
lsblk: to know about how many ebs volumes attached to our system (list of block devices)




