On Linux based system most of the hardware information can be extracted from /proc file system, for example display CPU and Memory information, enter:
| Tutorial details | |
|---|---|
| Difficulty | Intermediate (rss) |
| Root privileges | Yes |
| Requirements | None |
| Estimated completion time | 10 minutes |
cat /proc/cpuinfo
The following list summarizes commands to get various hardware from the system:
Linux cpu/hardware information
Use any one of the following command:
# less /proc/cpuinfo
OR
# lscpu
Linux show free and used memory in the system
Use any one of the following command:
# cat /proc/meminfo
OR
# free
# free -m
# free -mt
# free -gt
Linux find out the current running kernel version
Type the following command:
# cat /proc/version
Sample outputs:
Linux version 3.2.0-43-generic (buildd@batsu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #68-Ubuntu SMP Wed May 15 03:33:33 UTC 2013
OR use
# uname -mrs
# uname -a
Find out information about the Linux distribution and version
# lsb_release -a
Sample outputs:
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.2 LTS Release: 12.04 Codename: precise
OR use the following command:
$ cat /etc/*release*
Sample outputs:
Red Hat Enterprise Linux Server release 6.4 (Santiago)
List all PCI devices
# lspci
List all USB devices
# lsusb
List all block devices (hard disks, cdrom, and others)
# lsblk
Dump all hardware information
Type the following command to see your motherboard, cpu, vendor, serial-numbers, RAM, disks, and other information directly from the system BIOS:
# dmidecode | less
See the complete list of Linux command to gathers up information about a Linux system
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop











{ 48 comments… read them below or add one }
Very useful commands. Thank you…
Nice commands, very useful.
Thank you.
Nice commands
Thanks for the help
Thanks Vivek Gite !
It was very useful for me..
very useful command
thanks
Thanks a lot helped me al ot
this commands very useful for me.
thanks
Thanx for providing linux commands
it is very helpful to linux users.
very useful
thanks,
also i need to find what FTP server is installed on my Remote Web Server via SSH,
can you provide command for that?
Thanks
Thank You,
It was very useful to me
Helped me a-lot, Thanks for these commands.
I got here what i was searching for.
Thanks.
Thank your for your help.
and very usefull
Best Regards.
Thank you sir verry helpful command
Very useful info. The precise question and answer are provided.
Hi Mr. Gite,
Thank You, very useful information.
nice commands, thanks alot
Thank you very much .It is very useful
Thanks for the useful cmd
Thanks for this command.
very useful for me… thanks ya….
hey not useful for me…!
I want some command which will tell me hw much graphics memory do I have and how much graphical memory is being used by a particular application…!
try lshw
thanks ..
Very usefull……..
The command was good enough,but we can even try with the most simple command:’top’
will give the information,of both the cpu and memory information.
Good One
Very userful commands
It is really very good source of information related to system h/w.
very useful command thanks!
Thanks.. its very useful.. and we can use lshw and top commands….
Information is very helpful. Thank You
was very userful Thank u
Thanks you very much that’s fine command for see all information about hardware:
this is useful information to us
Thank You
I Tried to “vim” the files rather than “cat”ing them. I found that to be a bit more informal, but thats just my opinion. Thank you for the help anyways!
thanks lot for your good service its more helpfull to who r searching cpu and mem information,,,,
Very Usefull Command. But i think its not working in Fedora .. it is saying ” NO SUCH FILE OR DIRECTORY “
Thanks,
Generaly his command is very useful.
Thanks for the good work :)
Thanks for system info command
Linux Command to find the system configuration and hardware information
very easy way to know system info in linux
I am looking for the discovery tools(on Linux ) , should find me the following information,
1.Number of servers, for each server determine the OS and the hardware configuration (RAM, CPU, and current utilization of CPU/RAM)
2. Application stack running on the server
a. Database servers
b. Java applications
c. C/C++ applications
d. Other Enterprise applications
sudo dmidecode
Will give u all h/w info
Thank You…>>!!!
Really handy…Thanks
Good command , Helpfull