我想做一个普通的“ zip
”,所以我的CW3
文件变成了CW3.zip
. 我曾尝试使用在 Internet 上找到的一些示例命令,但它们似乎不起作用。
我尝试了以下方法,导致以下错误:
$ zip CW3
zip error: Nothing to do! (CW3.zip)
Run Code Online (Sandbox Code Playgroud)
我也试过:
compress -If CW3
Run Code Online (Sandbox Code Playgroud)
底线:如何在 UNIX 中压缩文件?
zip 语法是
zip archivefile1 file1 file2 file3
Run Code Online (Sandbox Code Playgroud)
用于压缩,
unzip archivefile1
Run Code Online (Sandbox Code Playgroud)
用于减压。
所以在你的情况下,对于压缩:
zip CW3.zip CW3
Run Code Online (Sandbox Code Playgroud)
见这里。
归档时间: |
|
查看次数: |
19184 次 |
最近记录: |