Archive a Draft File

LinuxBeginner
Practice Now

Introduction

A draft note has finished review and now belongs in the archive. Moving it to the archive and giving it its final name is one operation: the content stays the same while its path changes.

This challenge focuses only on the mv behavior practiced in the preceding file-operations lab.

Archive the Draft

Current Situation

The file incoming/draft-notes.txt is ready to be archived. The empty archive directory already exists beside incoming.

Scope

  • Workspace: /home/labex/project/file-organization
  • Source: incoming/draft-notes.txt
  • Destination: archive/final-notes.txt
  • Keep the file content unchanged.

Your Goal

Move the draft to archive/final-notes.txt.

Acceptance Criteria

  • archive/final-notes.txt exists with the original draft content.
  • incoming/draft-notes.txt no longer exists.

Hints

Can one command move and rename the file?

Yes. The guided lab showed that mv can use a destination path ending in a new filename.

Summary

You applied one focused file operation: mv changed a file's location and name while preserving its content.

✨ Check Solution and Practice