Learn Lion Terminal - need books

Discussion in 'Mac OS X Lion (10.7)' started by bruleke, Oct 17, 2011.

  1. bruleke macrumors 6502

    bruleke

    Joined:
    Jun 26, 2009
    Location:
    127.0.0.1
    #1
    Hi.

    I have never used terminal but I am really interested in using it.
    Can you recommend a good book for that?
    Something like "good for newbies and also good for advanced users".

    Please, dont tell me to buy "the missing manual".
    I really want something related to the Terminal.

    Thanks a lot!

    Ah! I appreciate if nobody replies to this thread calling me troll just because I am not a genius at Terminal app.
     
  2. Nuckinfuts macrumors 6502

    Joined:
    Jun 15, 2011
    Location:
    Syracuse, NY
    #2
    Google: Unix Commands, you don't need a book. If you want to script, you can look up BASH scripting
     
  3. GoKyu macrumors 65816

    GoKyu

    Joined:
    Feb 15, 2007
    Location:
    New Orleans
    #3
    Troll! :)

    Ok, so the Terminal is just your entrance into the UNIX subsystem of OS X. There's nothing really Lion-specific about it, unless you count being able to enable/disable Lion features from the command line.

    It runs a Mach kernel, which is a form of BSD (Berkeley Standard Distribution) UNIX. You can pick up almost any book on UNIX to start learning the commands, or type man <command name> to get more info directly from the in-system help. Here are a few to get you started:

    cd (change directory)
    ls (list files, similar to dir in windows)
    uptime (how long the computer has been running)
    top (similar to activity monitor, but on the command line)
    kill (kill a running program)

    Notice that all of these commands are lowercase - UNIX is case-sensitive.

    Good luck!
     
  4. bruleke, Oct 18, 2011
    Last edited: Oct 18, 2011

    bruleke thread starter macrumors 6502

    bruleke

    Joined:
    Jun 26, 2009
    Location:
    127.0.0.1
    #4
    I will not say anything about the "troll" because I know you are joking, ok? And also because you really seemed to help.
    ___________

    But thanks for the tips! I didnt know Terminal uses Unix commands! I will look for a book!
    I just want to learn something different ;)
     
  5. Mattie Num Nums macrumors 68030

    Mattie Num Nums

    Joined:
    Mar 5, 2009
    Location:
    USA
    #5
    Another thing you can do is search for terminal commands in google and then when in terminal type command man or command help. It will tell you everything that particular command does.
     
  6. bruleke thread starter macrumors 6502

    bruleke

    Joined:
    Jun 26, 2009
    Location:
    127.0.0.1
    #6
    Thanks for all the replies! :)

    I am really interested in learning UNIX commands!
    I am graduated at Administration in 2009, but I love computer programming - I know nothing, I just love it!

    Of course my intention is not to be a "Mark Zuckerberg" ehehh. But I want be able to do interesting stuff with Unix!

    Do you recommend any book?
    An e-book would be nice, since I am not that rich...
     
  7. old-wiz macrumors G3

    Joined:
    Mar 26, 2008
    Location:
    West Suburban Boston Ma
    #7
    I wouldn't recommend simply playing around with Terminal and *NIX commands. If you don't know what you are doing, you can create an awful mess. It's very easy when playing around with commands to screw the system up so badly you will need to re-install.

    I remember when I was working (before I retired) we would get smart-ass whippersnappers just out of college (with CS degrees) who would not pay attention to what they were doing at the console and screw the system up.

    Terminal is very powerful, but it allows you to do things you shouldn't.
     
  8. johnhurley macrumors 6502a

    johnhurley

    Joined:
    Aug 29, 2011
    #8
    You have a lot of good info already. One option is to use a virtual machine setup of some sort ( parallels/vmware/virtual box ) and create a copy of mac os x in your virtual machine.

    That way you can do what you want in terminal in your virtual machine without messing up your "real" system.

    There's not that much difference between mac os x and modern linux most of what you are doing with "terminal" commands plays between them.

    Basically it sounds like you are interested in learning unix shell scripting???

    There are a lot of things apple has built in on top of standard unix to control things specific to mac os x.

    You may also be interested in learning some apple script perhaps?
     
  9. thrill4rishabh macrumors newbie

    Joined:
    Jul 17, 2012
    #9
    I have a similar kind of problem. I just got a macBook Pro. I had a PC before. I would like to learn more about the system, in every sense. I have absolutely no idea about different shells and what scripting is or anything for that matter.

    So i would be very grateful if someone could recommend a good book about all things not about the GUI but about the UNIX part of it. The command line, terminal, etc.

    Thanks
     
  10. Quotenfrau macrumors 6502

    Quotenfrau

    Joined:
    Mar 6, 2011
    #10
  11. desertman macrumors 6502a

    Joined:
    Jul 14, 2008
    Location:
    Arizona, USA
  12. thrill4rishabh macrumors newbie

    Joined:
    Jul 17, 2012
    #12
    So books about UNIX for MAC OS X for Panther and Tiger will work for Lion as well??
     
  13. old-wiz macrumors G3

    Joined:
    Mar 26, 2008
    Location:
    West Suburban Boston Ma
    #13
    Most of it.
     

Share This Page