PrepAway - Latest Free Exam Questions & Answers

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)

PrepAway - Latest Free Exam Questions & Answers

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

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

  1. Steve says:

    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

Leave a Reply