1.

Hardware Information Commands

Answer»

Let us now see, some of the hardware information commands that give us the information about the hardware that we are using.

COMMANDMEANINGEXAMPLE & SYNTAX
cpu-infoThis 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 -hThis 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 -tvList all the USB connected devices.Syntax: $ lsusb -tv
cat /proc/meminfoGives the information about memory like total and occupied and so on.Syntax: $ cat /proc/meminfo
duThis 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





Discussion

No Comment Found