The Default Shells
The Solaris OE supports three primary shells:
Bourne shell
C shell
Korn shell
Examples given in this course assume that the Korn shell is being used.
The Bourne shell is the original UNIX ® system shell. The Bourne shell is
the default shell for the root user. The root user is a special system
account with unlimited access privileges for system administrators. The
default Bourne shell prompt for a regular user is a dollar sign ($); for the
root user the default shell prompt is a pound sign (#).
The C shell has a number of features that the Bourne shell does not, such
as command-line history, aliasing, and job control. The default C shell
prompt for a regular user is the host name followed by a percent sign
(hostname%); for the root user the default shell prompt is the host name
followed by a pound sign (hostname#).
The Korn shell is a superset of the Bourne shell with C shell-like
enhancements and a number of additional features. The Bourne shell is
almost completely upwardly compatible with the Korn shell. The default
Korn shell prompt for a regular user is a dollar sign ($); for the root user
the default shell prompt is the pound sign (#).
The Alternative Shells
The Solaris 9 OE contains three additional shells:
Bash - The GNU project's Bourne-Again shell is a Bourne-
compatible shell that incorporates useful features from the Korn and
C shells.
Z shell - The Z shell most closely resembles the Korn shell but
includes many other enhancements.
TC shell - The TC shell is a completely compatible version of the
C shell with additional enhancements.
阅读(755) | 评论(0) | 转发(0) |