小编sam*_*oes的帖子

如何递归压缩目录中的所有子文件夹?

目前,我有这个目录结构:

/Downloads
    /Download 1/
    /Download 2/
    /Download 3/
    ...
Run Code Online (Sandbox Code Playgroud)

我想要这个目录结构:

/Downloads
    Download 1.zip
    Download 2.zip
    Download 3.zip
    ...
Run Code Online (Sandbox Code Playgroud)

Essentially, I want to zip Download 1 into Download 1.zip and then remove Download 1. What would be the fastest/easiest way to achieve this? I'm running Ubuntu 12.04.

The reason I'm asking is because this folder is shared on my local network. When people ask this on my Apache Web Server, I want them to download Download 1, so I need …

command-line 12.04

4
推荐指数
1
解决办法
3488
查看次数

标签 统计

12.04 ×1

command-line ×1