linux压缩指定文件夹的命令
时间: 2023-08-26 22:17:18 浏览: 99
Linux 压缩某个文件夹的实现方法
在Linux中,可以使用以下命令来压缩指定文件夹:
1. 使用zip命令压缩到zip文件:
```
zip -r target.zip folder_name
```
这将会将指定文件夹`folder_name`压缩为`target.zip`文件。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [linux常用压缩、解压缩文件或文件夹命令tar、zip](https://blog.csdn.net/qq_34125713/article/details/128691745)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Linux下压缩文件夹命令](https://blog.csdn.net/haijiege/article/details/83752362)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文