7zr:tldr:27207
7zr: Encrypt an existing archive (including file names).
$ 7zr a ${path-to-encrypted-7z} -p${password} -mhe=${on} ${path-to-archive-7z}
try on your machine
This command is using the 7zr utility to create an encrypted 7z archive file.
Here's a breakdown of the command:
7zr
: This is the command for the 7zr utility, which is a standalone version of the 7-Zip software used for creating and extracting archives.a
: This is the command option for adding files to an archive.${path-to-encrypted-7z}
: This is the path to the encrypted 7z file you want to create. You should replace${path-to-encrypted-7z}
with the actual desired path.-p${password}
: This option specifies the password to encrypt the archive. You should replace${password}
with the actual desired password.-mhe=${on}
: This option enables archive header encryption. The${on}
variable represents enabling this feature. You can replace${on}
with eitheron
oroff
depending on whether you want to enable or disable archive header encryption.${path-to-archive-7z}
: This is the path to the files/directory you want to compress and create an archive from. You should replace${path-to-archive-7z}
with the actual desired path.
In summary, this command creates an encrypted 7z archive file with specified encryption settings and includes the files/directory at the specified path in the archive.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.