Bird
0
0

You want to create a backup system where multiple filenames point to the same file data without duplicating storage. Which command and link type should you use, and why?

hard📝 Application Q15 of 15
Linux CLI - File and Directory Operations
You want to create a backup system where multiple filenames point to the same file data without duplicating storage. Which command and link type should you use, and why?
AUse <code>ln</code> to create hard links because they share the same inode and save space.
BUse <code>ln -s</code> to create symbolic links because they are easier to manage.
CCopy the file multiple times to ensure backups are independent.
DUse <code>ln -s</code> with absolute paths to avoid broken links.
Step-by-Step Solution
Solution:
  1. Step 1: Identify storage-saving method

    Hard links share the same inode and file data, so multiple filenames point to the same data without duplicating storage.
  2. Step 2: Compare with symbolic links and copies

    Symbolic links only point to filenames and do not save storage if the original is deleted. Copying duplicates data, using more space.
  3. Final Answer:

    Use ln to create hard links because they share the same inode and save space. -> Option A
  4. Quick Check:

    Hard links save space by sharing inode [OK]
Quick Trick: Hard links share data, saving space for backups [OK]
Common Mistakes:
MISTAKES
  • Choosing symbolic links for storage saving
  • Copying files instead of linking
  • Ignoring inode sharing concept

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes