Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sw_vers(1) [osx man page]

SW_VERS(1)						    BSD General Commands Manual 						SW_VERS(1)

NAME
sw_vers -- print Mac OS X operating system version information SYNOPSIS
sw_vers sw_vers -productName sw_vers -productVersion sw_vers -buildVersion DESCRIPTION
sw_vers prints version information about the Mac OS X or Mac OS X Server operating system running on the local machine. When executed with no options sw_vers prints a short list of version properties: % sw_vers ProductName: Mac OS X ProductVersion: 10.3 BuildVersion: 7A100 The ProductName property provides the name of the operating system release (typically either "Mac OS X" or "Mac OS X Server"). The ProductVersion property defines the version of the operating system release (for example, "10.2.4" or "10.3"). The BuildVersion property provides the specific revision of the operating system as generated by the Mac OS X build system. OPTIONS
The output of sw_vers can be refined by the following options. -productName Print just the value of the ProductName property. -productVersion Print just the value of the ProductVersion property. -buildVersion Print just the value of the BuildVersion property. EXAMPLES
% sw_vers -productName Mac OS X % sw_vers -productVersion 10.3 % sw_vers -buildVersion 7A100 FILES
/System/Library/CoreServices/SystemVersion.plist /System/Library/CoreServices/ServerVersion.plist Mac OS X March 10, 2003 Mac OS X

Check Out this Related Man Page

PLUTIL(1)						    BSD General Commands Manual 						 PLUTIL(1)

NAME
plutil -- property list utility SYNOPSIS
plutil [command_option] [other_options] file ... DESCRIPTION
plutil can be used to check the syntax of property list files, or convert a plist file from one format to another. Specifying - as an input file reads from stdin. The first argument indicates the operation to perform, one of: -help Show the usage information for the command and exit. -p Print the property list in a human-readable fashion. The output format is not stable and not designed for machine parsing. The purpose of this command is to be able to easily read the contents of a plist file, no matter what format it is in. -lint Check the named property list files for syntax errors. This is the default command option if none is specified. -convert fmt Convert the named file to the indicated format and write back to the file system. If the file can't be loaded due to invalid syntax, the operation fails. fmt is one of: xml1, for version 1 of the XML plist format binary1, for version 1 of the binary plist format json, for the JSON format There are a few additional options: -- Specifies that all further arguments are file names -s Don't print anything on success. -r For JSON, add whitespace and indentation to make the output more human-readable. -o path Specify an alternate path name for the result of the -convert operation; this option is only useful with a single file to be converted. Specifying - as the path outputs to stdout. -e extension Specify an alternate extension for converted files, and the output file names are otherwise the same. DIAGNOSTICS
The plutil command exits 0 on success, and 1 on failure. SEE ALSO
plist(5) STANDARDS
The plutil command obeys no one's rules but its own. HISTORY
The plutil command first appeared in Mac OS X 10.2. Mac OS X August 30, 2002 Mac OS X
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File Permissions in Mac OS X

On my Mac OS X machine, I would like to edit the httpd.conf Apache configuration file. When I open the file up in TextEdit or even VI, I get an error that there was an error saving the file. I tried "su root" and that still does not work. I heard that the "chown" command can change the file... (11 Replies)
Discussion started by: liveapple2000
11 Replies

2. UNIX for Dummies Questions & Answers

Mac OS X

Have a customer with an OSX server. Server freezes without any warning 2-3-4 times a day. Log excerpt says: -- Mar 19 10:44:38 localhost mach_kernel: ether_ifattach called for en Mar 19 10:44:38 localhost mach_kernel: ipfw_load Mar 19 10:44:38 localhost mach_kernel: IP packet filtering... (13 Replies)
Discussion started by: John Philip
13 Replies

3. UNIX Desktop Questions & Answers

Mac Osx.2

I finally broke down and decided to buy a new piece of hardware. I think I made the right decision when I chose an Apple iBook - OSX is incredible! I haven't used a Mac since System7.5, and 10.2 is just blowing me away! Best of all, it's easy to use for people who are not used to Mac, but if I... (5 Replies)
Discussion started by: LivinFree
5 Replies

4. OS X (Apple)

Mac OS X in laptop

Does it worth, to buy a laptop with Mac OS X? Thank you in advance! (4 Replies)
Discussion started by: SolidSnake
4 Replies

5. Programming

exe info

Hi Is it possible to find all the information like its 'ProductName', 'ProductVersion, ''InternalName' , 'FileVersion' etc about a windows excutable file,( i.e. *.exe file ) on Unix/Linux. thanks sumsin (6 Replies)
Discussion started by: sumsin
6 Replies

6. OS X (Apple)

Development tools like VS,ASP.Net

Hi I want to shift to Mac OS X , I wanted to know whether there are any similar development tools like VS,asp.net,.net frameworks are available in Mac OS X or not? I mean how does one can compete with windows with the same results those of microsoft? Are there any extra software availble or where... (7 Replies)
Discussion started by: MULTIVERSE
7 Replies

7. OS X (Apple)

Mac OS XI?!

Mac OS X is an excellent operating system, but is there a possibility of a Mac OS XI?! (Why do I always have this ?! when I talk about Mac OS ?!) :confused: (13 Replies)
Discussion started by: Danny_10
13 Replies

8. UNIX for Dummies Questions & Answers

Looking to install Unix on my Mac

I know how to install Unix or Linux on my Mac using bootcamp, I installed the Ubuntu distribution of Linux on my Mac. Basically I'm looking for advice on what OS I should learn with. I am fiercely interested in programming, and am learning C++ and Python at the moment. Anyways, everyone has... (5 Replies)
Discussion started by: Micolejr2
5 Replies

9. Fedora

Unix-based operating systems

Hello. I own a MacBook (black) running Leopard (Mac OS X 10.5.8), and I'm curious about a few things -- any help will be very, very much appreciated. I'm pretty much a newbie to Unix, although I have some very basic command-line skills with Mac OS X's Terminal. So while I know how to work the... (13 Replies)
Discussion started by: Tron55555
13 Replies

10. Programming

Building an operating system for senior project?

Hey guys! this is my first post on this site. I was hoping you guys could help me out. I am going to be a senior this year and I want to build an operating system from scratch or at least do as much of as I can by myself. I want to build nothing big like ubuntu but something smaller looking that... (10 Replies)
Discussion started by: Hoonathan
10 Replies

11. UNIX for Dummies Questions & Answers

gmake on Mac

I am using my teminal on Mac to run some files with gmake, (I used unix before,but now I am trying to run it frm my mac) and I get the error message: -bash: gmake: command not found Any idea what the problem might be? Thanks! (10 Replies)
Discussion started by: cosmologist
10 Replies

12. UNIX for Dummies Questions & Answers

chmod ug-s /System/Library/CoreServices/RemoteManagement/ARDAgent.app/.... NOT PERMITTED

After much reflecting I decided that I don't want to have a remote managemente in my computer and I digited in Terminal from the Administrator Account: chmod ug-s /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAgent But the answer is: NOT PERMITTED Why? Is it not... (6 Replies)
Discussion started by: Vera
6 Replies

13. Shell Programming and Scripting

My code worked on a Mac, now it does not work in another computer

I guess Mac has default bash. Then I copy my code to another comp and run it...And it gives me an error like "bad substitution".... How I can change my code??? Never had before this kind of situation. Help please. if then n=$(sort /Users/Natalie/lastserial | tail -1) ... (6 Replies)
Discussion started by: Natalie
6 Replies

14. Shell Programming and Scripting

The Terminal on Mac OS X

(8 Replies)
Discussion started by: 1negroup
8 Replies

15. OS X (Apple)

The Terminal on Mac OS X

(8 Replies)
Discussion started by: 1negroup
8 Replies