0-9

  • List files in archive: 7z l <$archive.7z>

  • Extract files (with full path) from archive: 7z x <archive.7z> <list of files with full path, space separated>

  • Extract files from archive: 7z x <$archive.7z> <$file>

  • Add files to archive, creat new if not exist: 7z a <$archive.7z> <$file>

  • Add files to archive with password and create self extracting executable: 7z a -sfx -p <$archive> <$file>

  • Add files to archive with password and create self extracting executable except .mp4 files: 7z a -sfx -p <$archive> . -x@.mp4

Last updated