📁 File Management 📖 Official

Project File Archiver

Archive completed projects, clean temp files, and compress to save space

★☆☆ Beginner 10-15 min January 12, 2025
📋

Scenario

💬

Prompt

Please analyze the ~/Projects/old-website project:
- Total file size
- Largest files and folders
- Temporary files that can be safely deleted (node_modules, .cache, build, etc.)
- Estimate how much space can be saved after cleanup

Then clean up temporary files:
- Delete node_modules, .next, dist, build folders
- Delete .DS_Store, Thumbs.db and other system files
- Delete .log and .cache files
- Keep package.json, README.md and other important files

Finally, package the project:
- Use tar.gz format for compression
- Include date in filename: old-website-archive-20250112.tar.gz
- Save to ~/Archives folder
- Verify archive integrity

Expected Result

💡

Tips

  • For particularly important projects, you can create two archives: one keeping all files (including node_modules), and one with only source code, just in case you need to return to the exact same environment.