LPIC-1 Exam 102 v5 (Linux Administrator) — Question 108
What is true about the file .profile in a user's home directory?
Answer options
- A. It must be executable.
- B. It must call the binary of the login shell.
- C. It must use a valid shell script syntax.
- D. It must start with a shebang.
- E. It must be readable for its owner only.
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.