nerdexam
Linux_FoundationLinux_Foundation

LFCA · Question #53

LFCA Question #53: Real Exam Question with Answer & Explanation

The correct answer is D: Files present in the remote directory, but not present in the local directory, will be deleted.. This question asks about the specific function of the --delete option when using rsync for mirroring directories.

Submitted by joshua94· May 4, 2026Linux Fundamentals

Question

When using rsync to mirror a local directory to a remote server, what is the significance of the -- delete option?

Options

  • AFiles absent from the remote directory will be restored from the local directory.
  • BFiles present in the local directory, but not present in the remote directory, will be deleted.
  • CFiles absent from the local directory will be restored from the remote directory.
  • DFiles present in the remote directory, but not present in the local directory, will be deleted.

Explanation

This question asks about the specific function of the --delete option when using rsync for mirroring directories.

Common mistakes.

  • A. The --delete option does not restore files; it removes them from the destination if they are not in the source.
  • B. This description is inverted; rsync with --delete deletes files on the destination that are not in the source.
  • C. This describes a restoration scenario from remote to local, which is the opposite of mirroring local to remote and not what --delete does.

Concept tested. rsync utility options (mirroring, --delete)

Reference. https://man7.org/linux/man-pages/man1/rsync.1.html

Topics

#rsync#file synchronization#command line utility

Community Discussion

No community discussion yet for this question.

Full LFCA PracticeBrowse All LFCA Questions