Zip including hidden files

后端 未结 5 391
心在旅途
心在旅途 2021-01-30 01:31

In Linux I can zip all(except hidden files) in current directory by doing:

zip 1.zip *

But how do I include the hidden files?

5条回答
  •  醉话见心
    2021-01-30 01:58

    if you don't have rights to save zip file in current dir you can go to dir where you have rights and type

    zip -r 1.zip /path/to/source/dir/.
    

    However when if in .../some_dir you type

    unzip 1.zip
    

    then your files will be decompress into .../some_dir/path/to/source/dir/

提交回复
热议问题