Jim*_*834 4 command-line scripts zip unzip
我用“unzip filename.zip”从脚本中解压了一个文件,在终端中我看到了所有解压后的文件名。我想解压缩文件而不打印这些名称,以便我有一个干净的终端界面。
从MODIFIERS部分man unzip:
Run Code Online (Sandbox Code Playgroud)-q perform operations quietly (-qq = even quieter). Ordinarily unzip prints the names of the files it's extracting or testing, the extraction methods, any file or zipfile comments that may be stored in the archive, and possibly a summary when finished with each archive. The -q[q] options suppress the printing of some or all of these messages.
所以
unzip -q filename.zip
Run Code Online (Sandbox Code Playgroud)