Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6776973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:05:35+00:00 2026-05-26T16:05:35+00:00

I’ve been using Ubuntu for the last four years. I have a basic knowledge

  • 0

I’ve been using Ubuntu for the last four years.
I have a basic knowledge of shell commands and I prefer working in a terminal rather than using a GUI. Recently I’ve started using a Mac.

I’ve tried a few terminal commands (that I use on Ubuntu) in the Mac terminal and it seems to respond in mostly the same way.

Are there any significant differences in the commands I use, the task(s) they perform or the shell environment that I should be aware of?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:05:35+00:00Added an answer on May 26, 2026 at 4:05 pm

    If you did a new or clean install of OS X version 10.3 or more recent, the default user terminal shell is bash.

    Bash is essentially an enhanced and GNU freeware version of the original Bourne shell, sh. If you have previous experience with bash (often the default on GNU/Linux installations), this makes the OS X command-line experience familiar, otherwise consider switching your shell either to tcsh or to zsh, as some find these more user-friendly.

    If you upgraded from or use OS X version 10.2.x, 10.1.x or 10.0.x, the default user shell is tcsh, an enhanced version of csh(‘c-shell’). Early implementations were a bit buggy and the programming syntax a bit weird so it developed a bad rap.

    There are still some fundamental differences between mac and linux as Gordon Davisson so aptly lists, for example no useradd on Mac and ifconfig works differently.

    The following table is useful for knowing the various unix shells.

    sh      The original Bourne shell   Present on every unix system 
    ksh     Original Korn shell         Richer shell programming environment than sh 
    csh     Original C-shell            C-like syntax; early versions buggy 
    tcsh    Enhanced C-shell            User-friendly and less buggy csh implementation 
    bash    GNU Bourne-again shell      Enhanced and free sh implementation 
    zsh     Z shell                     Enhanced, user-friendly ksh-like shell
    

    You may also find these guides helpful:

    http://homepage.mac.com/rgriff/files/TerminalBasics.pdf

    http://guides.macrumors.com/Terminal
    http://www.ofb.biz/safari/article/476.html

    On a final note, I am on Linux (Ubuntu 11) and Mac osX so I use bash and the thing I like the most is customizing the .bashrc (source’d from .bash_profile on OSX) file with aliases, some examples below.
    I now placed all my aliases in a separate .bash_aliases file and include it with:

    if [ -f ~/.bash_aliases ]; then
        . ~/.bash_aliases
    fi
    

    in the .bashrc or .bash_profile file.

    Note that this is an example of a mac-linux difference because on a Mac you can’t have the --color=auto. The first time I did this (without knowing) I redefined ls to be invalid which was a bit alarming until I removed --auto-color !

    You may also find https://unix.stackexchange.com/q/127799/10043 useful

    # ~/.bash_aliases
    # ls variants
    #alias l='ls -CF' 
    alias la='ls -A' 
    alias l='ls -alFtr' 
    alias lsd='ls -d .*' 
    # Various
    alias h='history | tail'
    alias hg='history | grep'
    alias mv='mv -i' 
    alias zap='rm -i'
    # One letter quickies:
    alias p='pwd'
    alias x='exit'
    alias {ack,ak}='ack-grep'
    # Directories
    alias s='cd ..'
    alias play='cd ~/play/'
    # Rails
    alias src='script/rails console'
    alias srs='script/rails server'
    alias raked='rake db:drop db:create db:migrate db:seed' 
    alias rvm-restart='source '\''/home/durrantm/.rvm/scripts/rvm'\'''
    alias rrg='rake routes | grep '
    alias rspecd='rspec --drb '
    #
    # DropBox - syncd
    WORKBASE="~/Dropbox/97_2012/work"
    alias work="cd $WORKBASE"
    alias code="cd $WORKBASE/ror/code"
    #
    # DropNot - NOT syncd !
    WORKBASE_GIT="~/Dropnot"
    alias {dropnot,not}="cd $WORKBASE_GIT"
    alias {webs,ww}="cd $WORKBASE_GIT/webs"
    alias {setups,docs}="cd $WORKBASE_GIT/setups_and_docs"
    alias {linker,lnk}="cd $WORKBASE_GIT/webs/rails_v3/linker"
    #
    # git
    alias {gsta,gst}='git status' 
    # Warning: gst conflicts with gnu-smalltalk (when used).
    alias {gbra,gb}='git branch'
    alias {gco,go}='git checkout'
    alias {gcob,gob}='git checkout -b '
    alias {gadd,ga}='git add '
    alias {gcom,gc}='git commit'
    alias {gpul,gl}='git pull '
    alias {gpus,gh}='git push '
    alias glom='git pull origin master'
    alias ghom='git push origin master'
    alias gg='git grep '
    #
    # vim
    alias v='vim'
    #
    # tmux
    alias {ton,tn}='tmux set -g mode-mouse on'
    alias {tof,tf}='tmux set -g mode-mouse off'
    #
    # dmc
    alias {dmc,dm}='cd ~/Dropnot/webs/rails_v3/dmc/'
    alias wf='cd ~/Dropnot/webs/rails_v3/dmc/dmWorkflow'
    alias ws='cd ~/Dropnot/webs/rails_v3/dmc/dmStaffing'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I have thousands of HTML files to process using Groovy/Java and I need to
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.