/etc/profile is global configuration for all user if you set environment variable
.bash_profile applicable for specific user ~/.profile
use .profile for ksh and .bash_profile for bash. Since most configuration directives recognized by ksh are also recognized by bash, some people who use both shells find it easier to just create a symlink between the two.
There is also the matter of .kshrc, which is actually not a file that the korn shell specifically looks for. It's just a practical convention, and many people use it, and then source the file from inside their .profile. Otherwise, ksh will not automatically read it.
.bash_profile applicable for specific user ~/.profile
use .profile for ksh and .bash_profile for bash. Since most configuration directives recognized by ksh are also recognized by bash, some people who use both shells find it easier to just create a symlink between the two.
There is also the matter of .kshrc, which is actually not a file that the korn shell specifically looks for. It's just a practical convention, and many people use it, and then source the file from inside their .profile. Otherwise, ksh will not automatically read it.
No comments:
Post a Comment