Track a small archive operation

Initially, /work/staging contains exactly two ordinary files: a.dat, containing 1200 bytes, and b.dat, containing 800 bytes. The directory /work/archive is empty. The following commands run successfully in the stated order:

  1. cp /work/staging/a.dat /work/archive/a.dat
  2. mv /work/staging/b.dat /work/archive/b.dat
  3. rm /work/staging/a.dat

No other operations occur, and file contents do not change. After all three commands, how many regular files are in /work/archive, and what is their combined content size in bytes? Enter both answers as whole numbers. Measure content size, not filesystem storage allocation.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More The Unix/Linux Operating System Questions: