JAVA/Sun Exam Questions

Which two files (assuming they exist) does the Bourne shell read to initialize your environment?

You telnet into a Solaris machine and log in as user1. Your account is set up to use the Bourne shell (sh) and your home directory is /home/user1.
Which two files (assuming they exist) does the Bourne shell read to initialize your environment? (Choose two)

A.
/etc/login

B.
/etc/profile

C.
/home/user1/.login

D.
/home/user1/.profile

Explanation:

Both the Bourne and Korn shells use the system wide /etc/profile file and the local user file /home/user1/.profile. The login files are used by the csh shell