Skip to main content

Command Palette

Search for a command to run...

Linux - chapter-2: Hardware Commands

A Complete Guide to Hardware Related Commands in Linux

Updated
2 min read
Linux - chapter-2: Hardware Commands
B

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:

  1. lscpu: to get the complete info about cpu

  2. cat /proc/cpuinfo: command to get cpu info using cat command

  3. top: to know about server cpu utilization.

  4. ps -aux: command to see running processors on linux system.

  5. free: to know how much ram our server consumed and also to know the available ram (in kb)

  6. free -m or cat /proc/meminfo: to know how much ram our server consumed and also to know the available ram (in mb)

  7. free -g: to know how much ram our server consumed and also to know the available ram (in gb)

  8. free -h: to know how much ram our server consumed and also to know the available ram (in human readable format)

  9. free -g: to know how much ram our server consumed and also to know the available ram (in gb)

Memory Info:

  1. df -h: how much ebs volume consumed (to check the storage)

  2. du -sh *: It displays the size of each file and folder in the current directory.

  3. lsblk: to know about how many ebs volumes attached to our system (list of block devices)

Linux Commands every DevOps engineer should know

Part 6 of 7

This series breaks down Linux commands into clear categories such as system, hardware, and file commands. Each topic is covered in a separate article to make learning Linux simple, organized, and beginner-friendly.

Up next

Linux - chapter-1: System Commands

A Beginner’s Guide to Essential Linux System Commands