Multiple choice technology operating systems

Name and Location of the file which is read by Korn shell when you login?

  1. .profile in /home/{user_name}

  2. .login in /usr/{user_name}

  3. .login in /home/{user_name}

  4. profile in /etc

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

The Korn shell (ksh) reads the .profile file from the user's home directory (/home/{user_name}) at login. This file contains environment variables, aliases, and other shell configuration. The .login file is used by C-shell (csh) and its derivatives, not Korn shell. The /etc/profile is a global file read by all users, but the question asks for the user-specific file.