how to compress a bunch of directories and files with encryption with the zip programme?
zip -re package_name.zip directory_path… file…
extract all files into a exdir
unzip package_name -d directory_path
create an encrypted DMG image of a folder
hdiutil create -srcfolder [source folder path] -encryption AES-128 [filename.dmg]
compress and archive a bunch of directories and files
tar -zcvf package_name.tgz directry_path files
extract an tgz to current folder
tar -xvf package_name
Unrar: extract files without archive path
unrar e foo.rar
Unrar: extract files with full archive path
unrar x foo.rar