如何在没有 zip 文件夹名称的情况下提取 .zip

时间:2020-12-22 19:35:06

标签: bash zip unzip

我想从 github 下载一个 .zip 内核,给它一个名字 kernel 并将其内容提取到 mkdir kernel wget -O kernel.zip https://github.com/MiCode/Xiaomi_Kernel_OpenSource/archive/surya-q-oss.zip -d kernel #-o for overwrite all and -d for specifying where to put the files unzip -o kernel.zip -d kernel 文件夹中。我这样做了:

kernel/Xiaomi_Kernel_OpenSource-surya-q-oss/

但它提取到 kernel 而不是 -j

如此处所述添加 Xiaomi_Kernel_OpenSource-surya-q-osshttps://unix.stackexchange.com/questions/72838/unzip-file-contents-but-without-creating-archive-folder 没有帮助,它只是将所有文件放在同一位置。

此解决方案:https://askubuntu.com/a/1088207 涉及知道存档名称(本例中为 id file type created --------------------------------------- 1 xyz1.pdf A 4/06 1 xyz2.pdf A 4/06 1 xyz3.pdf A 4/06 2 abc.pdf A 4/06 2 abc1.pdf A 4/06 3 123.pdf A 4/06 ),我不知道

0 个答案:

没有答案
相关问题