K
K
Kamikaze10242018-04-13 15:41:35
linux
Kamikaze1024, 2018-04-13 15:41:35

How to preserve file executable attributes when archiving a linux directory?

I archive the directory with files, among which there are executable ones. From under the command line, with the command
zip archive.zip -r /home/user/software/
After packing, the executable attributes disappear, what should I do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lazil, 2018-04-13
@Kamikaze1024

use tar/gzip

K
ky0, 2018-04-13
@ky0

Why zip something? Gzip, for example, saves everything by default.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question