📁 ファイル管理
📖 公式
プロジェクトファイルのアーカイブ
完了したプロジェクトをアーカイブし、一時ファイルを削除、圧縮して容量を節約します
★☆☆ 初級 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
✨
期待される結果
💡
ヒント
- • 特に重要なプロジェクトについては、2つのアーカイブを作成できます:1つはすべてのファイル(node_modulesを含む)を保持し、もう1つはソースコードのみを保持します。完全に同じ環境に戻る必要がある場合に備えて。