JAVA/Sun Exam Questions

The following files are read by the Korn shell to initialize your environment on login:

Your telnet into a Solaris machine and log in as user1. Your account is set up to use the Korn shell (ksh) and your home directory is /home/user1.
The following files are read by the Korn shell to initialize your environment on login:

A.
/home/user1/.kshrc

B.
/etc/profile

C.
/home/user1/.profile
In which order are they executed?

D.
A, B, C

E.
A, C, B

F.
B, A, C

G.
B, C, A

H.
C, A, B

I.
C, B, A

Explanation:

The /etc/profile system file is always executed before any local user files.
The local .profile file is then executed prior to .kshrc (if it exists).
The .kshrc file is used for setting up variables, the .profile file can however be used instead.