Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ksh environment files setup 2

Status
Not open for further replies.

pavNell

Technical User
Sep 27, 2002
178
US
I've downloaded and installed the ksh binary and put into /bin directory. Also made sure the line "/bin/ksh" is in /etc/shells. Next, changed my default shell to be /bin/ksh in /etc/passwd.

Now I need to setup my ksh environment files. This is where I'm lost. Are there certain file names that ksh expects to see in my home dir? Like, instead of .bashrc for bash, does ksh look for .kshrc? Does ksh source .profile? How about .alias? Sorry if I'm missing something painfully obvious here. Thanks for any help.
 
what flavor or unix?

ksh looks for .profile in your home directory, which is specified in /etc/passwd. .kshrc (or any other name for an environment file) is optional. The environment file would be called from your .profile.
 
Have a look at thread80-579058 initially.


I love deadlines. I like the whooshing sound they make as they fly by.

Douglas Adams
 
Ahhh, so from .profile I source *other* environmental scripts like .alias and so on. Cool!! Thanks a lot.
 
There is also (in most systems) the file /etc/profile. Here you put the initialisations that are required by all users of the system.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top