What You Can Do with Mac OS X and Unix

What You Can Do with Mac OS X and Unix

What is Unix, and Why 1 Is It Good? Mac OS X is the most significant advance in desktop computing since the introduc- tion of the original Mac interface. It provides users with unparalleled stability, flexibil- ity, and openness—arguably necessary additions to the Macintosh operating system. Each of these features will help users take their Macs to new creative heights. Mac OS Wh X provides these features by virtue of having been built on top of Unix. So if you’re using Mac OS X, you’re using Unix. at is Unix, and Why Is It Good? Why is Unix, and You probably already know that Unix is an industrial-strength operating system. It’s specifically designed for always-on, network-connected computers that run multiple applications and are shared by many users. Since its creation in 1969, Unix has evolved into one of the world’s most popular operating systems. Moreover, Unix is an excellent environment for creating new software. Apple built Mac OS X on top of a version of Unix called Darwin. If you’re a Mac user who wants to push the boundaries of what you can do with your computer, here’s what Unix can do for you. 1 Chapter 1 tasks. Before Mac OS X, the Mac OS employed The Advantages of a cooperative multitasking—in which each Unix-based Mac OS application is supposed to behave and play well with the other applications on a machine. You While Unix is best known as a server operat- can guess what happens when cooperatively ing system—most of the servers on the multitasked applications don’t cooperate. Internet run Unix—it’s also been the desktop operating system for engineers, software Flexibility developers, and system administrators. But Mac OS X is placing a Unix-based system on Unix was designed to allow different pro- millions of desktops. With Unix under the grams to be connected in an almost infinite hood of OS X, Macintosh users will now be variety of ways. Because thousands of utilities able to take advantage of software develop- are available for Unix (and because they work ments beyond the boundaries of Apple together so well), Unix users can customize Computer, while still enjoying the elegance their work environments relatively easily, and ease of use the Mac OS is famous for. building their own tools when the need arises. Mac OS X itself comes with around Basing Mac OS X on the Darwin operating 500 utilities, most of which can be easily com- system gave it three important features that, bined with other programs (see Chapter 4, for all its advantages, the Mac OS had not pre- “Useful Unix Utilities,” for a roundup of the viously had: stability, flexibility, and openness. ones you’re most likely to use). Because of Stability this (and its portability), Unix is the ideal environment for developing new software. Even the most devoted Macintosh user will admit that system crashes have been an Openness unfortunate but predictable part of everyday Darwin, like other open-source versions of life. Unix systems, however, are extremely Unix, such as Linux, is open—that is, the difficult to crash. Thanks to protected mem- inner workings are open to examination and ory—the memory each application uses that change. You can download, study, and alter is unavailable to any other application—with its programming source code at will. (In fact, OS X your Macintosh will continue running versions of Darwin other than Apple’s already even when one or more applications crash. exist.) Say you want to create a server that You can simply restart the crashed applica- enables you to synchronize an iPod with tion without having to restart your Mac. he Advantages of a Unix-based OS Mac he Advantages T If your system doesn’t have protected memory, a badly behaving application can disturb the What’s in a Name? memory space of another application, or even of the operating system itself—often with Strictly speaking, Unix is a trademarked nasty results. Macintosh operating systems term that’s been variously owned by before OS X didn’t include protected mem- AT&T, Novell, and now the Open Group ory—which explains all those system crashes! (www.opengroup.org). Only Unix versions with the correct legal pedigree can use Afeature called preemptive multitasking that name. In reality, though, most people allows the operating system to limit the casually refer to all of the various “flavors” amount of computational resources devoted as Unix. to each application by prioritizing between 2 What is Unix, and Why Is It Good? any computer over the Internet, or one that Becoming a sophisticated user sends faxes on demand from a catalog of files: Whatever software you create is likely Thus, you should read this book because you to use an existing piece of Unix software as want a deeper understanding of your com- its starting point. puter, and to get your fingers and hands and mind inside of it. Using Unix is about moving By allowing people to examine and change from being a consumer of software and sys- their operating systems, open-source soft- tems to being a creator of software and sys- ware is central to the ongoing evolution and tems. This means pushing the envelope of spread of Unix, resulting in a software-devel- how you interact with the operating system, opment environment that will continue to delving into areas where most users don’t go, increase in stability, flexibility, and power. in order to develop capabilities that most Unix’s ability to connect different programs users don’t have. Mac OS X makes this possi- together provides almost infinite flexibility. ble now because Unix is an operating system Combine this with Unix’s built-in support for for developing and building, for getting into TCP/IP (the networking protocol that defines the nitty-gritty. the Internet) and other networking tools, and T Since much Unix software is created by vol- of a Unix-based OS Mac he Advantages you have an operating system—Mac OS X— unteers, you’re benefiting from the hard work that’s ready to take you into a future in which of thousands of users. But using Unix means you can build your applications, and every you will always tweak, modify, and configure computer has the ability to be a server. to get the software to do what you want. By Whatever capability you want to add to an bringing an industrial-strength server to application, you can probably do it in Darwin. your desktop, Apple has taken desktop com- As a Mac enthusiast, you may have had lim- puting to another level—in much the same ited exposure to any kind of programming, way that Macintosh-plus-PostScript laser but you’ll be able to expand your horizons by printers brought high-quality print publish- accessing the Unix underlying Mac OS X. ing and graphics tools to the desktop. None Even if you’re brand-new to programming, of this is automatic, though, and using Unix delving into Unix is the best way to start. places a greater burden on you. If you’re com- ing to Unix expecting the shrink-wrapped experience of the Mac OS or Windows, you’re bound to be disappointed. From Multics to Unix You will work with Unix primarily from the Unix wasn’t actually named until about a command line in the Terminal application year into its development—at which point (more about that in the next chapter). You the wordplay on the preceding Multics will put together lots of odd-sounding com- project was intentional (uni, meaning mands, creating tiny and not-so-tiny scripts “one,” as opposed to multi, meaning and programs to give the machine capabili- “many”). The tradition of puns and word ties it never had before. You will not only be games in Unix software continues to this customizing your machine and creating soft- day, as you’ll see in later chapters when we ware, you will be customizing your world, introduce programs such as less, which is and indirectly the world the rest of us live in. an improvement on an earlier program called more. More became less, you see. 3 Chapter 1 Most people won’t really notice that Mac OS X is Unix-based. In fact, most people will use Other Versions of Unix their Mac OS X Macintoshes just as they Over the years, many versions of Unix always have—writing in their word proces- have been developed—some by large cor- sors, creating images in graphics software, porations (for example, Sun Microsystems’ and editing sound and video. Solaris and Hewlett-Packard’s HP/UX), Furthermore, some of the Unix tools in Mac and some by small companies and individ- OS X were available in some form for Mac OS uals working for their own pleasure. The 9, but the Unix versions are included with most famous of the latter is the open- Mac OS X (for example, a Web server and an source GNU/Linux operating system, email server). With Mac OS X, you are more which combines the work of hundreds of likely to work with these applications, for a programmers from around the world and couple of reasons. Mac OS X is so stable that has been adopted by thousands of compa- you won’t be afraid of messing up your com- nies. (For example, IBM announced in puter. More important, if you use a “pure” January 2002 a mainframe computer Unix tool, like the Apache Web server, then designed specifically for Linux.) the skills you learn, and the system you build, Agood list of dozens of versions of Unix is will be transferable to almost any other Unix available at www.ugu.com/sui/ugu/show? environment with little effort.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    22 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us