10.7 Shell Commands?

Discussion in 'Mac OS X Lion (10.7)' started by Fritzables, May 12, 2011.

  1. macrumors regular

    Joined:
    May 6, 2011
    Location:
    Brisbane AUSTRALIA
    #1
    Hi All,

    I am lucky enough to buy one of the new series iMacs which I assume will have 107 Lion installed.

    I don't have the unit yet as it's still in transit and this is my first Mac product.

    I understand the OS is modeled over UNIX/Linux - if this is the case, when I open a Shell, would I also use the same commands that I used to use when I had Linux?

    Pete
     
  2. macrumors 65816

    Joined:
    Jan 9, 2007
    #2
    Lion hasn't been released yet, so your new iMac won't have it.

    Yes, you can use many unix and linux commands from the terminal.
     
  3. thread starter macrumors regular

    Joined:
    May 6, 2011
    Location:
    Brisbane AUSTRALIA
    #3
    Thanks iVoid, well... I didn't know that. So I'm guessing I will get Snow Leopard ?

    Pete
     
  4. macrumors newbie

    tsmith

    Joined:
    Mar 27, 2011
    #4
    You will have snow leopard shipped with your new iMac
     
  5. Mal
    macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #5
    To answer the other part of the question, you'll have a standard bash shell available. You can install others, or X11 and use other windowing systems as well.

    jW
     
  6. macrumors 6502a

    Joined:
    Oct 13, 2007
    #6
    MacOS X (10.5 and 10.6) are certified UNIX's (linux is specifically not, and will forever be "unix-like").

    As to "the same commands as Linux", then this is a definite maybe. Outside of the POSIX/UNIX mandated commands, MacOS X more often falls back on the BSD forms of doing things, rather than the GNU (linux) versions. While the broad strokes, and most of the commands are similar, the details can be annoyingly different if you switch back and forth all the time (different switches, different options, etc...).

    Don't fall into the trap of thinking that one is better than the other. They are just different.

    The other thought trap to avoid falling into is that MacOS X is not "built on top of" UNIX. Rather there is a BSD API layer in there. At the bottom of things the BSD layer is built on top of a (heavily modified) Mach kernel, and all of the very bottom layers (drivers, etc) are very different than the way linux puts them together (or traditional BSD for that matter). Additionally the top layers (the GUI) have only a few places where they really tie into the BSD layer (filesystem being the big one), mostly they are connected more directly with Mach.

    And on the subject of shells, most of the usual ones are available: sh*, bash (default), tcsh, zsh, etc... More esoteric ones are available.


    * as most *nix's today sh is just the bash binary running in a special mode
     
  7. macrumors 6502

    elithrar

    Joined:
    May 31, 2007
    #7
    Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5)

    I'd suggest Googling for "Homebrew" if you want an easy way to install specific GNU/CLI utils, too (i.e git, wget, etc)
     

Share This Page