05.01.2013 Views

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

320<br />

CHAPTER 18 INTRODUCING DARWIN AND THE SHELL<br />

Told by an idiot, full of sound and fury,<br />

Signifying nothing.<br />

^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos<br />

^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Txt ^T To Spell<br />

As you can see, at the top of the window Nano identifies the open file, and at the bottom it<br />

provides a list of common actions. The action list at the bottom will change based on<br />

circumstance—for example, when you go to save a file (using ^o), you will be prompted for the<br />

file name you wish to save our file as. The action list will also provide some other saving options<br />

(creating a backup, appending this file to another, etc.). With the short help file included with<br />

Nano, plus the adaptive action list shown, I’m going to forgo the table of commands since it<br />

would largely be redundant.<br />

File Permissions and Attributes<br />

File permissions are a central concept found in traditional UNIX systems. They allow one user to<br />

share files with everyone else on the system while still maintaining control of those files. The easiest<br />

way to view these permissions and attributes is with the ls -l command. For example, one<br />

line from an ls -l command may look like this:<br />

-rw-r--r--- 1 scott scott 409 May 17 10:44 soliloquy4<br />

The first string of 11 characters represents our permissions. Also of interest here are the<br />

file’s owner (scott) and the file’s group (also scott).<br />

The first ten characters are broken down as follows:<br />

NOTE The 11th character is special and indicates additional file attributes or security applied<br />

to the file. This will be covered in the “ACLs and Extended File Attributes” section.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!