Quick system hardware overview

curl http://flip-edesign.com/scripts/system_info | bash
This is a simple BASH script which with gather basic system hardware such as CPU sockets and cores, Memory modules and sizes as well as overall memory and more. Root access may be needed to pull information from 'dmidecode'
Sample Output
-------------------------
|   OS Type / Version   |
-------------------------
Gentoo Base System release 1.12.11.1

-------------------------
|       OS Arch         |
-------------------------
i686

-------------------------
|       Memory          |
-------------------------
3292MB

-------------------------
|    Memory Modules     |
-------------------------
Memory Device
	Size: 1024 MB
Memory Device
	Size: 1024 MB
Memory Device
	Size: 1024 MB
Memory Device
	Size: 1024 MB

-------------------------
|   Process Sockets     |
-------------------------
Processor Information
	Socket Designation: Socket M2

-------------------------
| Process Type / Cores  |
-------------------------
processor	: 0
model name	: AMD Phenom(tm) 9600 Quad-Core Processor
processor	: 1
model name	: AMD Phenom(tm) 9600 Quad-Core Processor
processor	: 2
model name	: AMD Phenom(tm) 9600 Quad-Core Processor
processor	: 3
model name	: AMD Phenom(tm) 9600 Quad-Core Processor

-------------------------
|     Mounted FS        |
-------------------------
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda6              12G  4.6G  6.4G  42% /
udev                   10M  140K  9.9M   2% /dev
shm                   1.7G     0  1.7G   0% /dev/shm

-5
By: flip387
2009-08-29 20:18:02

What Others Think

better download the script and inspect it. If he would just change the script on the site, it could be changed to something malicious.
peshay · 552 weeks and 5 days ago
You are very right peshay (even though I dont intend to do anything malicious), user can download the script from http://flip-edesign.com/scripts/system_info directly and run it locally this way there is not worries about anything changing.
flip387 · 552 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: