Tuesday, January 22, 2013

Customize Unix Environment

Below Contents is quoted from http://www.shrubbery.net/solaris9ab/SUNWabe/ADVOSUG/p33.html

  1. Type echo $SHELL.
    $ echo $SHELL
    /bin/sh
  2. Review the output of the command to determine your default shell.
    Refer to the following list to identify your default shell.
    • /bin/sh - Bourne shell
    • /bin/bash - Bourne Again shell
    • /bin/csh - C shell
    • /bin/ksh - Korn shell
    • /bin/tcsh - TC shell
    • /bin/zsh - Z shell
Regardless of the shell you are using, when you first log in your system generally runs the system profile file, /etc/profile. This file is generally owned by the system administrator and is readable (but not writable) by all users.
After your system executes the system profile, it runs the user profile. The user profile is one (or more) initialization files that define your working environment. For example, if you're in the CDE environment your system checks this file (or set of files) each time you start a new terminal or window.
Depending on which shell is set up as your default, your user profile can be one of the following:
  • .profile (for the Bourne and Korn shells)
  • .bash_profile (for the Bourne Again shell)
  • .login and .cshrc (for the C shell)
  • .tcshrc and .cshrc (for the TC shell)
  • .zlogin and .zshrc (for the Z shell)

No comments:

Post a Comment