Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

Mac OS X Shells

In essence, all shells do the same thing; they just differ in the way they do it, the options and settings they recognize, and the special features they offer. The following list describes the Mac OS X shells, all of which are included with the /bin directory, and are available to all users on the system.

tcsh

tcsh is an evolved version of csh , a shell whose syntax is based loosely on the C programming language. It’s quite popular for interactive use, and is the default shell for new users on Mac OS X.

Mac OS X includes a /bin/csh command, but it’s really just an alias to /bin/tcsh.

bash

The Bourne Again Shell (a pun on the Bourne Shell, the very first Unix shell program) is, like tcsh, a conceptual child of the earlier csh shell, but it is more commonly used, and is probably the most popular shell in use across Unix systems today. Many Mac OS X newcomers will recognize it as the default shell on most Linux distributions.

bash is aliased to /bin/sh, so that shell scripts run in Darwin will actually run through bash.

zsh

Among the popular shell programs in the whole Unix sphere, zsh is the newest. It attempts to meld the better features of bash and tcsh into a single shell, as well as add a lot more—one of its more well-known unique features is programmable tab completion.

For general information about changing and using shells, see Section 19.1.1.1 in Chapter 19.

Common Features

The following table displays features that are common to Mac OS X’s shells.

Symbol/Command ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Running Mac OS X Tiger

Running Mac OS X Tiger

Jason Deraleau, James Duncan Davidson
Troubleshooting CentOS

Troubleshooting CentOS

Jonathan Hobson

Publisher Resources

ISBN: 0596003706Catalog PageErrata