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
None. Telnet should be disabled on the Solaris box. Use ssh!
The answer is that it reads B and then D; “login” is csh, which is even more obsolete than telnet!
So – this course you’re cheating on by posting your homework on the internet – is it worth doing if it’s so very very out of date?
0
0