Mac OSXTerminal Basicsv2.1
Source: www.machacking.net
Topic: Mac Hacking
Short Desciption:2 Introduction This FAQisintended to be a quick primer on Mac OS XsBSDSubsystem. The BSD Subsystem is a powerful tool that gives you an immense array of new capabilities and access ...
Content Inside:
Mac OSXTerminal Basicsv2.1
Neal Parikh/nparikh@freeshell.org/neal@macnn.co m
September 29,2002
1
Table of Contents
1. Table of Contents
2. Introduction
3. Why UNIX?
4. WhatsDarwin?
5. Basics of Darwin
6. Introduction to shells
7. Running system commands
8. Basic shell customization
9. Permissions
10. Running programs
11. WhatsNetInfo?
12. Basics of compilation
13. Process Management
14. Introduction to text editors: Pico, Emacs, and Vi
15. Introduction to XWindows/X11
1
2
Introduction
This FAQisintended to be a quick primer on Mac OS XsBSDSubsystem. The BSD Subsystem
is a powerful tool that gives you an immense array of new capabilities and access to a large number
of new applications. If you learn touse them wisely, you can do some truly incredible things.
3
Why UNIX?
That is the main question, isntit? Many people are confused as to why Apple has picked UNIX
in the first place. There are several reasons why Apple has picked UNIX to be the core of their
new OS (not in order of importance):
1. The historical reason: Mac OS Xsrootstraceback to NeXTSTEP, and that used UNIX.
2. Developers who maybe unfamiliar with the Mac platform will likely have some level of
familiarity with Unix, which aids portingeorts.
3. Most users who have studied computer science in either school or college have encountered
Unix on some level, and must have some basic familiarity with it.
4. Theresareasonalmost every server in the world runs Unix. Avast amount of administration
software, and a lot of it that runs very stably. A Unix server, properly configured, can be
very low maintenance.
5. Having an open source core makes the OS more flexible. For example, theresnowayof
upgrading the OS 9 version of Personal WebSharing without Apple releasing a software update.
If you find that Apache (the world-standardwebserver included with OS X) is out of
date, you can just go to thew ...

