LFCS · Question #867
After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)
The correct answer is C. By creating a symbolic link from the old to the new path of the data. E. By mounting the new filesystem on the original path of the data. To maintain the former path of moved data, one can create a symbolic link from the old path to the new data location or mount the new filesystem directly at the original path.
Question
Options
- ABy creating an ACL redirection from the old to the new path of the data.
- BBy creating a hard link from the old to the new path of the data.
- CBy creating a symbolic link from the old to the new path of the data.
- DBy running the command touch on the old path.
- EBy mounting the new filesystem on the original path of the data.
How the community answered
(63 responses)- A6% (4)
- B13% (8)
- C78% (49)
- D3% (2)
Why each option
To maintain the former path of moved data, one can create a symbolic link from the old path to the new data location or mount the new filesystem directly at the original path.
ACLs (Access Control Lists) define granular file permissions, not path redirection or aliases for data access.
Hard links cannot span across different filesystems; they must reside on the same filesystem as the target data.
Creating a symbolic link (soft link) from the old path to the new path will transparently redirect any access attempts at the original path to the data's new location, allowing applications to function without reconfiguration.
The `touch` command updates access/modification timestamps or creates empty files, and it does not provide any form of path redirection or aliasing.
Mounting the new filesystem directly onto the original path of the data effectively replaces the contents visible at that path with the data from the new filesystem, thus preserving the path for existing applications.
Concept tested: Filesystem management, links, and mounts
Source: https://man7.org/linux/man-pages/man7/symlink.7.html
Topics
Community Discussion
No community discussion yet for this question.