P
P
Pavel2016-06-29 20:11:25
rar
Pavel, 2016-06-29 20:11:25

How to pack many files into different archives with a password in Linux?

There are a number of video files, you need to pack them individually and password-protect, on Windows winrar does this at a time. How about on Linux? (I have mint)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-06-29
@mrusklon

It will find and pack in the same folder
/home/user/dir/1.avi into the archive /home/user/dir/1.avi.7z
Delete uncompressed files

find /home/user/dir/*.avi -type f -exec sh -c '7z a -t7z -p"пароль" "{}.7z" "{}";rm -f "{}";' \;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question