For example, please suppose that there are three files in the home directory: a.pdf, b.xlsx, and c.docx, and you would like to create a zip file 'abc.zip' containing the directory 'abc' with those three files.
1. Make a directory 'abc'.
$ mkdir abc
2. Copy the above three files into the directory 'abc'.
$ cp a.pdf abc
$ cp b.xlsx abc
$ cp c.docx abc
3. Zip the directory 'abc'.
$ zip -r abc.zip ./abc/
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.