How To Find Basic Linux Hardware Info
Share
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
More Stories
How to Clean Up Empty Directories Using the find Command in Linux
Managing files and directories in Linux often involves dealing with empty directories that can clutter your workspace. Manually finding and...
How to Print a Directory Structure Using PowerShell: Step-by-Step Guide
If you need to print out the directory structure and list the files within, this PowerShell script will help you...
Windows God Mode… What!?!
Windows God Mode is a hidden feature in the Windows operating system that allows users to access all of the system’s control panel options and settings in a single place.
How To Test A SQL Server Connection
There is an easy way to test your SQL Server connection when running Windows without any special software. I found...
4 Lines To Export Outlook Rules To Excel/CSV Using PowerShell
I used to use a ton of Outlook Rules to organize the thousands of emails that I receive each day....
Get The Size & Record Count Of All Tables In A SQL Server Database
Use the SQL query below to display the size and record count of all tables in an SQL Server database....
Average Rating