Checking OS-X version in commandline / terminal
March 5th, 2007 at 23:09A “howto check OS-X Version in a commandline” post with less then 100 words
- Open Terminal.app
- Enter: “sw_vers” and hint Enter
The output should look like this:
Welcome to Darwin!
fidel@MacPro~: sw_vers
ProductName: Mac OS X
ProductVersion: 10.5.5
BuildVersion: 9F33
fidel@MacPro~:
Thats is
Tags: buildversion, cli, productname, productversion, terminal, version



November 24th, 2008 at 09:11
Troubleshooting Tip:
Checking version of a non-booting/problem system from commandline. sw_vers works great for information on the system that you are currently booted to. However, say you are troubleshooting a troublesome mac and that it’s not booting on its own but is connected via target disk mode and you need to know what it’s running. From the manpage for sw_vers, this command just parses /System/Library/CoreServices/SystemVersion.plist. So, if you need info on a system that you are trying to repair…
e.g. Problem HDD is named “Foobar” –>
# cat /Volumes/Foobar/System/Library/CoreServices/SystemVersion.plist
example output:
ProductBuildVersion
9F33
ProductCopyright
1983-2008 Apple Inc.
ProductName
Mac OS X
ProductUserVisibleVersion
10.5.5
ProductVersion
10.5.5
Sure, this is just a slight deviation from the real command sw_vers, but it can be very helpful to obtain info on a non-booting system.
November 24th, 2008 at 09:15
Hi,
thanks for adding this addition to the initial post. Always great to see that others contribute.
Best regards
fidel
April 29th, 2009 at 15:43
Wer zu dumm ist, zu entscheiden, ob er ein Programm braucht oder ob es den Zweck optimal erfüllt ist selbst schuld. Ich habe durch Bundles und Sparangebote schon sehr brauchbare Software erstanden und kann mich als User in keinster Weise als “abgezockt” bezeichnen.
Als Developer muss man es sich gut überlegen aber für gewöhnlich kaufen User auch eher von Devs, denen sie vertrauen. Zum Beispiel, weil sie bei MacHeist gute Erfahrungen mit ihnen gemacht haben. Ich habe schon oft mehrere Programme von einem Hersteller gekauft (z.B. iShowU und Stomp). Niemand muss bei MacHeist mitmachen, weder Hersteller noch User. Was soll also diese Diskussion?
Im übrigen gilt wie auch beim Thema Piraterie, niemand würde sich all die Software kaufen, wenn sie nur zum normalen Preis erhältlich wäre. Eine Verlustberechnung aufzustellen ($50 000 pro Grundschüler/Jahr) ist absoluter Mist.
April 29th, 2009 at 15:47
@PM:
kann es sein dass du im falschen Beitrag gelandet bist … thematisch passt
>>MacHeist & Co
irgendwie nicht zu
>> Checking OS-X version in commandline / terminal
abgesehen davon hat keiner behauptet dass jmd dazu gezwungen wird oder nicht – sprich … reg dich ab
Wenn man ein Thema nicht mehr diskutieren darf sollte man sich begraben lassen in meinen Augen.
In dem Sinne
Gruss
fidel