This Oracle Solaris release supports the following shell features and behavior:
The user account that is created when you install the Oracle Solaris release is assigned the GNU Bourne-Again Shell (bash) by default.
The standard system shell (bin/sh) is now the Korn Shell 93 (ksh93).
The default interactive shell is the Bourne-again (bash) shell (/usr/bin/bash).
Both the bash and ksh93 shells feature command-line editing, which means you can edit commands before executing them.
You can display default shell and path information in a few different ways:
Use the echo $SHELL and which commands:
$ grep root /etc/passwd root:x:0:0:Super-User:/root:/usr/bin/bash $ echo $SHELL /usr/bin/bash $ which ksh93 /usr/bin/ksh93
Use the pargs command:
~$ pargs -l $$ /usr/bin/i86/ksh93
The ksh93 shell also has a built-in variable called .sh.version, which can be displayed as follows:
~$ echo ${.sh.version} Version jM 93u 2011-02-08
To change to a different shell, type the path of the shell that you want to use.
To exit a shell, type exit.
The following table describes the shell options that are supported in Oracle Solaris.
|
The following table shows the default UNIX® system prompt and superuser prompt for shells that are included in the Oracle Solaris OS. Note that the default system prompt that is displayed in command examples varies, depending on the Oracle Solaris release.
|