Ночь, улица, фонарь, аптека… То бишь ssh, удалённый сервер и непонятно какая версия OS X. Что делать? Ответ взят здесь
Набирать команду:
$ sw_vers ProductName: Mac OS X Server ProductVersion: 10.7.1 BuildVersion: 11B2118
Или, если хочется большего:
$ system_profiler SPSoftwareDataType Software: System Software Overview: System Version: Mac OS X Server 10.7.1 (11B2118) Server Configuration: Advanced Kernel Version: Darwin 11.0.1 Boot Volume: Vertex Boot Mode: Normal Computer Name: Computer Name User Name: Oleg Serdyukov (ctrld) Secure Virtual Memory: Enabled 64-bit Kernel and Extensions: Yes Time since boot: 3 days 2:06
И ещё:
$ defaults read loginwindow SystemVersionStampAsString 10.7.1
Для «ортодоксальных»:
$ cat /System/Library/CoreServices/SystemVersion.plist <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> ProductBuildVersion 11B2118 ProductCopyright 1983-2011 Apple Inc. ProductName Mac OS X ProductUserVisibleVersion 10.7.1 ProductVersion 10.7.1
Вариант @Rost_n_Roll:
$ defaults read /System/Library/CoreServices/SystemVersion { ProductBuildVersion = 11B2118; ProductCopyright = "1983-2011 Apple Inc."; ProductName = "Mac OS X"; ProductUserVisibleVersion = "10.7.1"; ProductVersion = "10.7.1"; }
В нагрузку — тип процессора:
$ sysctl machdep.cpu.brand_string machdep.cpu.brand_string: Intel(R) Core(TM) i7-2635QM CPU @ 2.00GHz