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.
Dont think all the answers are correct. Here the system should read the /etc/profile then /etc/.profile and lastly the /etc/.kshrc…can anyone help here??
0
0
Hi Shantanu, what you said is right, actually if you read the answer asys the same as you but the marked option is wrong, the correct one as per your comment and as per the explanation should be then G
0
0