Move and Rename Files with mv Command
📖 Scenario: You are organizing files in your home directory. You want to move a file from one folder to another and rename it at the same time.
🎯 Goal: Learn how to use the mv command to move and rename files in Linux.
📋 What You'll Learn
Create a file named exactly
report.txt in the Documents folderCreate a variable called
destination with the path to the Archives folderUse the
mv command to move report.txt from Documents to Archives and rename it to report_2024.txtPrint the command output or a confirmation message
💡 Why This Matters
🌍 Real World
Organizing files by moving and renaming them is a common task to keep your computer tidy and easy to navigate.
💼 Career
Knowing how to use the <code>mv</code> command is essential for system administrators, developers, and anyone working with Linux or Unix systems.
Progress0 / 4 steps