Results 1 to 6 of 6
  1. #1
    Compare OS X command line to Linux command line?
    V6Pony's Avatar
    Member Since
    Oct 30, 2010
    Location
    Southern Illinois
    Posts
    273
    Specs:
    MBP 15" I7 first one and loving it.
    Compare OS X command line to Linux command line?
    Anyone know of a list of differences between commands used in Linux and OS X command line? I would like to learn both at the same time.

    Thanks

  2. #2
    Compare OS X command line to Linux command line?
    Lifeisabeach's Avatar
    Member Since
    Sep 30, 2007
    Location
    The Republic of Neptune
    Posts
    7,637
    Quote Originally Posted by V6Pony View Post
    Anyone know of a list of differences between commands used in Linux and OS X command line? I would like to learn both at the same time.
    This strikes me as an excellent article on the matter:
    osx - Is the terminal in mac and linux the same? - Stack Overflow

    For more resources:
    linux mac terminal commands - Startpage Web Search

    Please verify and include the exact model/year of your Mac and OS X version number (available from "About This Mac", then "More Info" on the Apple menu).
    ------
    Links: Onyx | EasyFind | Apple Hardware Test | How to test your hard drive | The Safe Mac Adware Removal Guide | Uninstall MacKeeper
    ------
    Lifeisabeach - Mac-Forums Member of the Month June 2009, Feb 2012, and March 2013.

  3. #3
    Compare OS X command line to Linux command line?
    V6Pony's Avatar
    Member Since
    Oct 30, 2010
    Location
    Southern Illinois
    Posts
    273
    Specs:
    MBP 15" I7 first one and loving it.
    Quote Originally Posted by lifeisabeach View Post
    Thanks for the info lifeisabeach. Not looking for a web search.

  4. #4
    Compare OS X command line to Linux command line?
    Raz0rEdge's Avatar
    Member Since
    Jul 17, 2009
    Location
    MA
    Posts
    8,179
    Specs:
    27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3
    For most things the terminals are essentially similar. What differs is the compliment of tools you have access to by default on OS X. So if you stick to the basic terminal commands, then they are equal..

    OS X uses BASH as the shell and Ubuntu uses DASH (but can be switched to BASH) and most other Linux variants usually stick with BASH..DASH is really bad for executing scripts. The D in DASH stands for "Diminished" in my mind, regardless of what it actually stands for..
    --
    Regards
    ...Ashwin



    Be sure to read the Community Guidelines | The more information you provide, the better answers you get, remember GIGO.

  5. #5
    Compare OS X command line to Linux command line?
    V6Pony's Avatar
    Member Since
    Oct 30, 2010
    Location
    Southern Illinois
    Posts
    273
    Specs:
    MBP 15" I7 first one and loving it.
    Quote Originally Posted by Raz0rEdge View Post
    For most things the terminals are essentially similar. What differs is the compliment of tools you have access to by default on OS X. So if you stick to the basic terminal commands, then they are equal..

    OS X uses BASH as the shell and Ubuntu uses DASH (but can be switched to BASH) and most other Linux variants usually stick with BASH..DASH is really bad for executing scripts. The D in DASH stands for "Diminished" in my mind, regardless of what it actually stands for..
    Thanks RazOrEdge. I'm using Debian distro. Debian uses Bash. Not sure why but when I first started it seemed that there were a lot of differences. I have went back and now it seem there are very few differences. Strange not sure what I was doing at first. I do understand that some or all the commands are programs that run and need to be installed to be used. I really like using the command line.

  6. #6
    Compare OS X command line to Linux command line?
    cptkrf's Avatar
    Member Since
    Dec 08, 2009
    Location
    The same as Sheldon Cooper - East Texas
    Posts
    453
    Specs:
    iMac 2014 i5 5k 32gb 1tb fusion, second TB display, 2014 MBA
    There is very little difference from the command line. I move back and forth during the day from Debian to OSX terminal without thinking about it. Unix commands, Bash, Perl and Ruby scripts all run the same way.

    That being said, if you are EXPLORING from the terminal you will find major differences once you drill down into the subdirectories, since OSX is built on BSD Unix and Linux is a Unix clone. For instance, if you try to find rc2.d in /etc on OSX so you can change start up programs, like in Debian, you are out of luck - you have to find the OSX/BSD documentation.

    But, looking at both from the top of the tree, they are mostly the same, with the usual home, etc, dev, sbin and other subdirectories (not folders) being recognizable.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Command line for spaces?
    By cyclopse in forum OS X - Operating System
    Replies: 0
    Last Post: 07-21-2011, 01:14 PM
  2. Is there a command line like this?
    By Downy in forum OS X - Operating System
    Replies: 13
    Last Post: 02-27-2011, 04:29 PM
  3. Mac osx/ linux command line
    By jazzman84116 in forum OS X - Operating System
    Replies: 2
    Last Post: 07-18-2007, 10:26 AM
  4. Command line arguments
    By presenter in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 06-02-2005, 12:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •