Linux Essentials (010-160) — Question 60
What happens to a file residing outside the home directory when the file owner's account is deleted? (Choose two.)
Answer options
- A. During a file system check, the file is moved to /lost +found.
- B. The file is removed from the file system.
- C. The UID of the former owner is shown when listing the file's details.
- D. The user root is set as the new owner of the file.
- E. Ownership and permissions of the file remain unchanged.
Correct answer: C, E
Explanation
When the owner of a file is deleted, the UID of the former owner remains visible in the file's details, which is why option C is correct. Additionally, the ownership and permissions of the file do not change, making option E also correct. Options A, B, and D are incorrect because the file is not automatically deleted, moved to a different location, or assigned to root.