bash in Mac OS X

By: Strauss K Emailed: 1671 times Printed: 2153 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

bash - Launches the Bourne-Again SHell, an sh-compatible shell that incorporates useful features from the Korn and C shells (ksh and csh).

Syntax 
      bash [options]

Options
   -c string   Commands are read from string.
               If there are arguments after the string, they are
               assigned to the positional parameters, starting with $0.

   -D	       A  list of all double-quoted strings preceded by $ is printed
	       to standard output. These are the strings that are subject
               to language translation when the current locale is not C
               or POSIX.
               This implies the -n option; no commands will be executed.
	       -PO-  = output in the GNU gettext (portable object) file format.

   -i	       Interactive shell.

   -l          Make bash act as if it had been invoked as a login shell.

   -r          RESTRICTED SHELL

   -s          If the -s option is present, or if no arguments remain after
               option processing,  then commands are read from the standard
               input. This option allows the positional parameters to be
               set when invoking an interactive shell.

   -v	       Verbose output.

   --          A -- signals the end of options and disables further option
               processing. Any arguments after the -- are treated as file-
               names and arguments. An argument of - is equivalent to --.

bash is the default in OS X Panther 10.3, Tiger 10.4 and Leopard 10.5

To Exit bash type exit

Default shell

Your default shell can be accessed from System Preferences > Accounts, Right click (or control-click) on an account and choose Advanced Options.

You can also set a default shell for the terminal:
Open the Terminal app (Applications > Utilities > Terminal) then open Terminal Preferences

Whatever the default, you can always switch shells on the fly by just typing the name of new shell - bash, csh, tcsh or zsh.


macos Home | All macos Tutorials | Latest macos Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Strauss K
cut in Mac OS X
curl in Mac OS X
crontab in Mac OS X
cron in Mac OS X
cp in Mac OS X
continue in Mac OS X
complete in Mac OS X
command in Mac OS X
comm in Mac OS X
cmp in Mac OS X
cksum in Mac OS X
chroot in Mac OS X
chown in Mac OS X
chmod in Mac OS X
chgrp in Mac OS X

More Tutorials in macos
Getting PHP running on Mac OS 10.1
Installing gedit for python programming in Mac OS X
What is Mac OS X?
History of Mac OS X
Major features of Mac OS X
Different Versions of Mac OS X
What is new in Mac OS X Snow Leopard
alias, unalias in Mac OS X
apropos in Mac OS X
awk in Mac OS X
basename in Mac OS X
bash in Mac OS X
bg in Mac OS X
bless in Mac OS X
break in Mac OS X

More Latest News
Most Viewed Articles (in macos )
cut in Mac OS X
History of Mac OS X
basename in Mac OS X
bash in Mac OS X
cal, ncal in Mac OS X
caller in Mac OS X
case in Mac OS X
chflags in Mac OS X
chgrp in Mac OS X
crontab in Mac OS X
What is Mac OS X?
Major features of Mac OS X
Different Versions of Mac OS X
What is new in Mac OS X Snow Leopard
alias, unalias in Mac OS X
Most Emailed Articles (in macos)
cal, ncal in Mac OS X
cut in Mac OS X
bg in Mac OS X
builtin in Mac OS X
cd in Mac OS X
chflags in Mac OS X
chmod in Mac OS X
chroot in Mac OS X
cmp in Mac OS X
comm in Mac OS X
cp in Mac OS X
What is Mac OS X?
Major features of Mac OS X
Different Versions of Mac OS X
apropos in Mac OS X