How To Find Basic Linux Hardware Info

Read Time:51 Sec

You can use the below to find some basic information about the hardware your Linux system is installed on:

How much RAM is installed and how much of it is in use (megabytes)?

$ free -m
 total used free shared buffers cached
Mem: 3949 3189 760 0 599 1594
-/+ buffers/cache: 995 2954
Swap: 16386 109 16277

Processor type:

$ cat /proc/cpuinfo

Check the size of the hard drive and what hard drives are available in the system.
This command will also list USB drives and sticks. You need root permissions to execute the fdisk command:

$ sudo fdisk -l | grep GB
Disk /dev/sda: 42.9 GB, 42949672960 bytes
Disk /dev/sdb: 107.3 GB, 107374182400 bytes

UPDATE 01-04-2018: Another handy command for finding disk space is “df”:

$ df
Filesystem                  1K-blocks    Used Available Use% Mounted on
/dev/mapper/rootvg-usrlv      5232640 1856376   3376264  36% /usr
/dev/mapper/rootvg-homelv     8378368  189912   8188456   3% /home
/dev/sda1                      520868  122896    397972  24% /boot

Got any other tips for me?

Author

Stewart Schatz

Career: Principal CNC Consultant for Syntax Systems Limited specializing Oracle JD Edwards EnterpriseOne and the technology that supports it. Side Hustle: Owner/Operator of E1Tips.com Location: Lancaster, PA USA  What I like to do: Invest in Family, Explore Technology, Lead Teams, Share Knowledge/Experience, Hunt, Hike, etc.

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Previous post How To Find Your Linux Version
Next post Pause/Resume E1 Scheduler with SQL