LPIC-1 Exam 102 v5 (Linux Administrator) — Question 108

What is true about the file .profile in a user's home directory?

Answer options

Correct answer: C

Explanation

The correct answer is C because the .profile file is a shell script that is executed upon login, and it must follow valid shell script syntax to function properly. Options A, B, D, and E are incorrect as the .profile file does not need to be executable, does not have to call the login shell binary, does not require a shebang, and does not have specific readability restrictions beyond being accessible to the owner.