# Make a encrypted 7z archive,-r is recursive. -mx = compression level choose between 0-9 -mx0 = fast, no compression -mx9 = slow, max compression. -mmt =cpu threads 3 is handy if you have 4 cores. -mhe = header encryption, it encrypts the filenames. -p is to set a password:
7z a -r -mx5 -mmt=3 -mhe=on -p ARCHIVE_NAME.7z folder_that_you_want_to_encrypt
# Same but with password "TH3PASSW0RD" on the command line (not recommended, it can go in the (bash) history):
z a -r -mx5 -mmt=3 -mhe=on -pTH3PASSW0RD ARCHIVE_NAME.7z folder_that_you_want_to_encrypt