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
UNAME(1) BSD General Commands Manual UNAME(1)NAME
uname -- Print operating system name
SYNOPSIS
uname [-amnprsv]
DESCRIPTION
The uname utility writes symbols representing one or more system characteristics to the standard output.
The following options are available:
-a Behave as though all of the options -mnrsv were specified.
-m print the machine hardware name.
-n print the nodename (the nodename may be a name that the system is known by to a communications network).
-p print the machine processor architecture name.
-r print the operating system release.
-s print the operating system name.
-v print the operating system version.
If no options are specified, uname prints the operating system name as if the -s option had been specified.
SEE ALSO hostname(1), machine(1), sw_vers(1), uname(3)STANDARDS
The uname utility conforms to IEEE Std 1003.2-1992 (``POSIX.2''). The -p option is an extension to the standard.
BSD November 9, 1998 BSD
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)