Search

Top Posts

Comments

  • mayank: i am having a problem with my macbook airport. it cannot open most of the sites, the reason always shown is...
  • Anon A Moose!: Working in Apple tech support, this tool is freaking invaluable. Do you know how many people call...
  • kyle: hi im mac and im a pc!!!!
  • TheWalrus: Great, thanks for this. Having just started using a Mac as well as my Ubuntu machine, it’s good to...
  • Imre: ….2048*1152

Categories

Recent Posts


Get System Information from the command line

Regardless of how many Mac’s you administer, there will surely come a time when you’ll need to retrieve relevant System Information. Gathering system information from the command line is vital for system and network administration, so the next time you’ve accessed a machine through SSH, find out what you need to know with two helpful command line tools. Here’s how, using the the sw_vers command and the system_profiler command:


sw_vers
The sw_vers command is short and sweet, it will give you the current operating system version and build number, with output as such:
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.4.9
BuildVersion: 8P2137

system_profiler
system_profiler is just a command line interface to the GUI app System Profiler (found in your Utilities folder). It’s very handy for learning about a machine over a network or remote connection via SSH. The standard output will blast you with screenfulls of content so it is best to pipe through the more command as follows:
$ system_profiler | more
This will allow you to view the output of system_profiler one screen at a time, navigable by the arrow keys and page up/down.

If you’re looking for information on your Airport connection, be sure to use the hidden Airport utility discussed here.

Posted by: David Mendez

Share

Save big on Mac Deals from Amazon.com

Comments:

Comments: 6

Comment from orville
Time: April 23, 2007, 5:40 pm

also you can use uname for unix related stats and information about your system

uname -a

it will spit back kernel info

Comment from Jay
Time: April 23, 2007, 7:44 pm

/proc is a wondrous thing on ubuntu/debian (and more I’m sure) distros

cat /proc/cpuinfo for processor info

cat /proc/meminfo for RAM status

Comment from mugab
Time: April 27, 2007, 8:34 pm

Jay’s tip is right but it doesn’t work on the Mac, is there a Mac OS X equivalent to the information in /proc ?

Pingback from Mac Info » Blog Archive » Drobky
Time: June 15, 2007, 3:18 pm

[...] Zdroj: OSXDaily [...]

Comment from srinivas
Time: December 21, 2008, 10:40 am

Anyone know, how to create a group in mac os x leopad, i wanted to install oracle. And any info how to install oracle on iMac?

Comment from Blu3fish
Time: March 23, 2009, 9:51 am

Thank you much, worked like a charm.

@srinivas Might want to spin up another discussion for that – or see if there is an existing one already spun.

Cheers,
Brennan

Write a comment






April 23rd, 2007