Multiple choice

In Bourne Shell, which file sets the UNIX environment for the user when he logs into his Home directory?

  1. exrc

  2. profile

  3. lastlogin

  4. mbox

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Bourne Shell (sh), the ~/.profile file in the user's home directory is executed automatically at login to set up the environment (PATH, variables, etc.). exrc is for vi configuration, lastlogin isn't a standard file, mbox stores incoming mail.