{"id":1835,"date":"2013-01-24T16:53:39","date_gmt":"2013-01-24T08:53:39","guid":{"rendered":"http:\/\/rmohan.com\/?p=1835"},"modified":"2013-01-24T16:53:39","modified_gmt":"2013-01-24T08:53:39","slug":"7zip","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=1835","title":{"rendered":"7zip"},"content":{"rendered":"<p><span style=\"font-size: medium;\"><a href=\"http:\/\/www.7-zip.org\/\" target=\"_blank\">zip<\/a> is a nice, cross-platform compression software, similar in purpose to WinZip or GZip. \u00a0&amp;zip can create and extract those .zip and .gz (and tar.gz) files, but it uses LZMA for its own native compression, which is a much more modern compression format. \u00a0(if you&#8217;re using .rar, please stop already).<\/span><\/p>\n<div><span style=\"font-size: medium;\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: medium;\">Use 7zip to create a password-protected file of a list of files and directories; note the flags -p -mhe which are REQUIRED for the password part to function!\u00a0 <a href=\"http:\/\/en.wikipedia.org\/wiki\/7z#Encryption\" target=\"_blank\">7zip uses AES encryption with 256-bit keys<\/a>, so this encryption isn&#8217;t joking around.<\/span><\/div>\n<div><span style=\"font-size: medium;\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: medium;\">Some basic command-line examples for using 7zip are listed below, which is run with either 7z or 7za on a GNU\/Linux system, the 7za being a bit less capable but also has fewer dependencies.<\/span><\/div>\n<div><span style=\"font-size: medium;\">\u00a0<\/span><\/div>\n<div>\n<div><span style=\"font-size: medium;\"><b>To Archive the files and folders &#8216;test\/ test2\/ file1 file2&#8217;<\/b><\/span><\/div>\n<div><span style=\"font-size: medium;\">shell$ 7z a -t7z -p -mhe out-file.7z test\/ test2\/ file1 file2<\/span><\/div>\n<div><span style=\"font-size: medium;\">Scanning<\/span><\/div>\n<div><span style=\"font-size: medium;\">Updating archive out-file.7z<\/span><\/div>\n<div><span style=\"font-size: medium;\">Enter password (will not be echoed) :<\/span><\/div>\n<div><span style=\"font-size: medium;\">Verify password (will not be echoed) :<\/span><\/div>\n<div><span style=\"font-size: medium;\">Everything is Ok<\/span><\/div>\n<div><span style=\"font-size: medium;\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: medium;\"><b>To List the files:<\/b><\/span><\/div>\n<div><span style=\"font-size: medium;\">shell$ 7z l out-file.7z<\/span><\/div>\n<div><span style=\"font-size: medium;\">\u00a0<\/span><\/div>\n<div><span style=\"font-size: medium;\"><b>And to Extract the files:<\/b><\/span><\/div>\n<\/div>\n<div><span style=\"font-size: medium;\">shell$ 7z e out-file.7x<\/span><\/div>\n<div>\u00a0<\/div>\n<div>\u00a0<\/div>\n<div><strong>More Details<\/strong> : \u00a0 http:\/\/www.dotnetperls.com\/7-zip-examples<\/div>\n<div>\u00a0<\/div>\n<div>\u00a0<\/div>\n<div>\u00a0<\/div>\n","protected":false},"excerpt":{"rendered":"<p>zip is a nice, cross-platform compression software, similar in purpose to WinZip or GZip. &amp;zip can create and extract those .zip and .gz (and tar.gz) files, but it uses LZMA for its own native compression, which is a much more modern compression format. (if you&#8217;re using .rar, please stop already).<\/p>\n<p> Use 7zip to create a [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1835"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1835"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1835\/revisions"}],"predecessor-version":[{"id":1837,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/1835\/revisions\/1837"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1835"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1835"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1835"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}