Answer» Let us now see, some of the hardware information commands that give us the information about the hardware that we are using.
| COMMAND | MEANING | EXAMPLE & SYNTAX |
|---|
| cpu-info | This command is used to display the information about your CPU. Note that this command is not available by default. It can be used after installation of the necessary package using sudo apt install cpuinfo. | Syntax: $ cpu-info
|
|---|
| free -h | This command is used to display the free and used memory. -h is used for converting the information (to be displayed) to human-readable form. | Syntax: $ free -h
|
|---|
| lsusb -tv | List all the USB connected devices. | Syntax: $ lsusb -tv
|
|---|
| cat /proc/meminfo | Gives the information about memory like total and occupied and so on. | Syntax: $ cat /proc/meminfo
|
|---|
| du | This command stands for disk usage and is used to estimate the space usage for a file or directory. |
Example: The following command gives the size in human-readable form for the Desktop folder.
Syntax: $ du -h Desktop
|
|---|
|