Setting Solaris Shells
First, take a look at /etc/passwd
Question: As a default user in Solaris how do you know who you are?
Most people type 'whoami' but this in unavailable in the default path. The path to 'whoami' actually exists in /usr/ucb/. But who wants to type /usr/ucb/whoami every time you want to know your user? Just add to your user profile. BUT, NEVER add "." to the root PATH. Here are the profile files associated with the different shells (set in /etc/passwd):
.profile (Bourne and Korn shells) #/bin/sh - Bourne #/bin/ksh - Korn shell
.bash_profile (Bourne Again shell)#/bin/bash - Bourne Again shell
.login and .cshrc (C shell) #/bin/csh - C shell
.tcshrc and .cshrc (TC shell) #/bin/tcsh - TC shell
.zlogin and .zshrc (Z shell) #/bin/zsh - Z shell
Question: As a default user in Solaris how do you know who you are?
Most people type 'whoami' but this in unavailable in the default path. The path to 'whoami' actually exists in /usr/ucb/. But who wants to type /usr/ucb/whoami every time you want to know your user? Just add to your user profile. BUT, NEVER add "." to the root PATH. Here are the profile files associated with the different shells (set in /etc/passwd):
.profile (Bourne and Korn shells) #/bin/sh - Bourne #/bin/ksh - Korn shell
.bash_profile (Bourne Again shell)#/bin/bash - Bourne Again shell
.login and .cshrc (C shell) #/bin/csh - C shell
.tcshrc and .cshrc (TC shell) #/bin/tcsh - TC shell
.zlogin and .zshrc (Z shell) #/bin/zsh - Z shell



0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home