zip command 的問題 - Linux

Table of Contents

zip 壓縮某一個路徑底下的某一個檔案時,如何不包含完整的路徑
我是這樣用:
zip /home/abc/file.zip /home/abc/file

可是這樣在abc/底下的file.zip 會包含全部的路徑,這樣對方解壓縮會有問題

還有如果是包含 file/file.zip又該怎麼下command?


先謝啦!

--

All Comments