How-to manual for Terminal for OS X 10.5.8

I cannot find, on this site, an operating manual for beginners for using Terminal for OS X 10.5.8. [Videos don't cut it for me; I need something I can print in large font, but I couldn't find a video either.] Must contain details and definitions. I programmed in machine language >40 years ago, but a lot has changed since then.


It is also not clear to me how to look for an answer. It took me an hour to log in; it had been well over a year since I was here last and I have brain damage which affects memory.

MacBook, Mac OS X (10.5.8), User is not Unix literate

Posted on Sep 11, 2011 3:38 PM

Reply
12 replies

Sep 11, 2011 5:58 PM in response to elizabethfromharrisonburg

Are you looking for a primer in some programming language, or just using the UNIX commands in Terminal?


I have been programming in C for decades, and can strongly recommend "The C Programming Language" as probably the best C referene book I have seen. It was written by Brian W. Kernighan and Dennis M. Ritchie, the original authors of C. My copy was published in 1988, and has never left my library. My library is VERY small, and I only keep books that have real value. Current editions (yes, it is updated every few years and currently sells at $70) have more recent updates.


Some other texts may be a little better an "simple introduction to C", but this book is the most complete coverage of the entire basic language within 250 pages that I have seen.


That is, assuming the reference in your last post to C was not a mistyping on your part.


Else, read the primer on UNIX, and do not forget "man <command>" for a complete online manual available for most any command.

Sep 11, 2011 6:22 PM in response to elizabethfromharrisonburg

Well, I thought I'd found the answer and began reading. After a few minutes I came across the instruction to first read the “Command Line Primer” but there was no link to where I could find it. The search at apple.com came up empty. This is exactly what I've been looking for but I didn't know its name. Where is it and why doesn't apple know what it is? A Help search and a search of my computer didn't come up with it in case it was hiding somewhere there, either.


Just saw your reference to man <command> or something like that -- that post isn't viewable as I edit. 😟

Did your UNIX idea contain a link? [NO short-term memory] How is that related to using Terminal? [I'm thinking perhaps Terminal is written in UNIX?] And why is the window for writing here 2x the width of my screen. <growl> And how do I get back to this page if I sign out? Took a long time to return after I thought I'd found the answer.

Sep 11, 2011 6:49 PM in response to elizabethfromharrisonburg

My favorite book for learning to use the shell and understanding the Unix principals is also a Brian Kernighan book


"The Unix Programming Environment", by Kernighan and Pike.


While this book was written in 1984, it is still a good book for learning Unix principals as well as learning how to use the shell.


While in a Terminal session, you can use the 'man' command to find out information about individual commands, although that is only use if you know the command exists.


The 'apropos' command is EXTREMELY useful, in that you can ask it to find any commands that mention a keyword you give apropos


apropos permissions

apropos delete

apropos directory

etc...


The 'man' pages are broken down into sections. Section 1 is user commands, sections 2, 3, 4, 5, 7 are programming APIs, section 6 is games, section 8 are administrator commands.


If you just want a list of all the use commands you could use


apropos 1


If you want the admin command list


apropos 8


Once you find a command that looks interesting, you can get detailed information about the command using


man command_name


NOTE: The command line interface is non-trivial. At one time it was considered user friendly back in the days when the alternative was a keypunch maching and 80 column punched cards. But today, the command line interface is NOT very friendly.


NOTE 2: There are some very powerful commands available from the command line. If you are not careful, you can delete files the system needs to operate properly, or delete something you personally needed. Deleting something from the command line means it is gone, unless you want to pay thousands of dollars to have a service recorder the data. Just assume anything you delete from the command line is gone.


But to those of use that have been using the command line for years, we find it an old friend that gives us a lot of power which would be difficult from a GUI interface.

Sep 11, 2011 6:51 PM in response to elizabethfromharrisonburg

OK.


We will start with the basics, based on your stated limitations.


I will try to not "talk down", but this will be a process of me and others "feeling out" how much detail we need to put in to help you.


"How do I get back to this page if I sign out?".


When you sign back in, not just to "communities" but as "you", you will have a "Your Stuff" in the upper right hand part of the screen. Right click on it, and select the "Discussions" tab. This discussion will appear in the list and will say "Updated" in yellow if someone responds.


"Why is the area for entering 2x the width of my screen?"


On my screen normally, the area for entering is 1/2 only the width of the screen, and the letters are too tiny for my eyes. I use the "screen zoom" to make it larger. Screen zoom is accomplished by holding the "control" key while using a two-finger scroll up or down. But I am on a MacBook Pro, and it is my first Mac, so MacBook may not have the same screen controls.


To get a sense of how much detail we can provide at one time, please respond to this post and answer if I am providing appropriate information in the appropriate manner.

Sep 11, 2011 7:28 PM in response to steve359

Thank you, Steve. This entry window is a good size; the one I used before, with a blue background, was twice this width. The "top right" part of the screen is well to the right of the screen on my MacBook and, at the moment is several screens up, too. Finding out which option to go to was a large part of the problem; most options are not on my screen when I get to apple.com. Thanks for the clue about My Stuff; I didn't know I wanted "communities;" I thought I wanted help or documentation.


I don't know if this is a reply to you or to the thread.


It's becoming my bed-time, so I need to go now [I'd also thought that clicking the apparent link at the top of the thread would tell me if there'd been another response which is why I'm so tardy getting back to you]. I hope to be able to check in tomorrow.


Thanks again,

Sep 12, 2011 9:21 AM in response to elizabethfromharrisonburg

I've found a "manual" for Terminal hiding right under my nose beneath the command entry spot in the Terminal Help; it was not at all clear to me that this was a link to a generalized help section. It appeared to me that to get help I needed to know the name of what I was trying to do and when I tried describing what I needed it always came up with zero help items. <shrug>

Sep 12, 2011 5:12 PM in response to elizabethfromharrisonburg

It sounds like you are off to a good start.


You can access these discussions more easily, and see all posts in the chain at once.


And you are getting a handle on how much help is available, and how to access it.


But ... BobHarris has suggested a good path. A good written primer on all parts on UNIX is a good start. I still keep my O'Reilly "UNIX in a Nutshell" because UNIX is really just so *huge* that very few people understand it all, much less can type any given command without some reference guide access.


BobHarris deserves a "Helpful answer" in my opinion (I would Mr. Harris, but I am not allowed!)


This discussion is in my list of "bookmarks", so when you need more that you think I can help with, feel free to ask.

Sep 13, 2011 11:49 AM in response to elizabethfromharrisonburg

I'd head over to you local library. Any book on the Bash shell will do.


Mac OS x is based on unix. Unix is a complex operating system not noted for ease of use. When Apple came out with Mac OS X, they de-emphasized the fact you could work in Unix. They didn't want to scare people. This has changed over time. To access Unix you use the terminal.


Practical Guide to Linux Commands, Editors, and Shell Programming, A (Paperback) Third edition includes Mac OS X the book

This is the best intro to the terminal that I have found.

(( I don't know what is going on. I can not find the third addition at amazon. ))

((( I don't know what is happenning. I cannot find the third addition. I'll have to look later. The second edition is almost as good. It' leave out a few Mac OS features. Unix is unix so it mostly is correct about Mac OS X. )))




Mac OS X Tiger in a Nutshell: A Desktop Quick Reference (In a Nutshell (O'Reilly))

http://www.amazon.com/Mac-OS-Tiger-Nutshell-Reference/dp/0596009437/ref=sr_1_4?s =books&ie=UTF8&qid=1285174595&sr=1

I know it's old, but I haven't seen an update.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How-to manual for Terminal for OS X 10.5.8

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.