📁 文件管理
📖 官方
项目文件归档打包
将完成的项目整理归档,清理临时文件,压缩打包以节省空间
★☆☆ 初级 10-15 min 2025年1月12日
📋
使用场景
💬
提示词
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
✨
预期结果
💡
使用技巧
- • 对于特别重要的项目,可以创建两份归档:一份保留所有文件(包括 node_modules),一份只保留源代码,以防万一需要回到完全相同的环境。