New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Oracle Solaris 11 System Administration 1z0-821 Question # 22 Topic 3 Discussion

Oracle Solaris 11 System Administration 1z0-821 Question # 22 Topic 3 Discussion

1z0-821 Exam Topic 3 Question 22 Discussion:
Question #: 22
Topic #: 3

A user brian is configured to use the bash shell. His home directory is /export/home/brian, and contains a .profile and a .bashrc file.

In the -profile, there are these lines:

genius =ritchie

export genius

In the .bashrc us this line:

genius=kernighan

In /etc/profile are these lines:

genius=thompson

export genius

When brian logs in and asks for the value of genius, what will he find, and why?


A.

genius will be ritchie, because that was the value exported in .profile.


B.

genius will be kernighan, because .bashrc executes after .profile.


C.

genius will be ritchie because variable settings in .profile take precedence over variable settings in .bashrc.


D.

genius will be ritchie because .profile executes after .bashrc.


E.

genius will be thompson because /etc/profile system settings always override local settings.


Get Premium 1z0-821 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.