Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sw_vers(1) [mojave 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

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
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