
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Protect Files Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/protect-files/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technig.com/tag/protect-files/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Thu, 05 Nov 2015 20:19:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://www.technig.com/wp-content/uploads/2020/04/32x32.png</url>
	<title>Protect Files Archives - TECHNIG</title>
	<link>https://www.technig.com/tag/protect-files/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>How to Set Password Zip Files with Command in all OS?</title>
		<link>https://www.technig.com/password-zip-files-with-command/</link>
					<comments>https://www.technig.com/password-zip-files-with-command/#respond</comments>
		
		<dc:creator><![CDATA[Shais]]></dc:creator>
		<pubDate>Thu, 05 Nov 2015 20:19:17 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Protect Files]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=3993</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="716" height="380" src="https://www.technig.com/wp-content/uploads/2015/11/Set-Password-Zip-Files-with-Command-Line-Tutility-.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Set Password Zip Files with Command Line Tutility" decoding="async" fetchpriority="high" srcset="https://www.technig.com/wp-content/uploads/2015/11/Set-Password-Zip-Files-with-Command-Line-Tutility-.jpg 716w, https://www.technig.com/wp-content/uploads/2015/11/Set-Password-Zip-Files-with-Command-Line-Tutility--300x159.jpg 300w" sizes="(max-width: 716px) 100vw, 716px" /></div>
<p>Compress and protect a folder files with third party software is pretty easy for a standard user. But how do it like a command line experts? To set password Zip files with command in different operating system, might be done with various command line tools. If you would like to learn, read this article and do it [&#8230;]</p>
<p>The post <a href="https://www.technig.com/password-zip-files-with-command/">How to Set Password Zip Files with Command in all OS?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="716" height="380" src="https://www.technig.com/wp-content/uploads/2015/11/Set-Password-Zip-Files-with-Command-Line-Tutility-.jpg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Set Password Zip Files with Command Line Tutility" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2015/11/Set-Password-Zip-Files-with-Command-Line-Tutility-.jpg 716w, https://www.technig.com/wp-content/uploads/2015/11/Set-Password-Zip-Files-with-Command-Line-Tutility--300x159.jpg 300w" sizes="(max-width: 716px) 100vw, 716px" /></div><p>Compress and protect a folder files with third party software is pretty easy for a standard user. But how do it like a command line experts? To set password Zip files with command in different operating system, might be done with various <a href="https://www.technig.com/tag/command-line/" target="_blank" rel="noopener noreferrer">command line</a> tools.</p>
<p>If you would like to learn, read this article and do it within different operating systems, like Windows, Mac OS, and Linux the command line environment. OK, let&#8217;s begin with Windows using Windows <a href="https://www.technig.com/tag/powershell/" target="_blank" rel="noopener noreferrer">PowerShell</a>.</p>
<h2>Set Password Zip Files with command In Windows</h2>
<p>In Windows using Windows PowerShell is best option, specially for new windows 10 or 8.1. If you are still with grand father of Windows 10, means XP, so try to install PowerShell on old Windows.</p>
<p>The <strong>compress-archive</strong> command creates a new archive, or zipped file, from specified files and folders. Unfortunately it is not support to set password zip files with command yet. Don&#8217;t blame me, it is the Microsoft masterpiece. Hope Microsoft will add the password switch to the coming update.</p>
<p>Let&#8217;s compress the <strong>Projects</strong> folder and it&#8217;s files. If yo are on the same directory where folder exist, and want create the compressed file to the same directory. Type &#8220;<strong>Compress-Archive Projects Projects&#8221;</strong> then hit enter.</p>
<figure id="attachment_4011" aria-describedby="caption-attachment-4011" style="width: 1102px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2015/11/Compress-Archive-Command.jpg"><img decoding="async" class="size-full wp-image-4011" src="http://3.90.216.52/wp-content/uploads/2015/11/Compress-Archive-Command.jpg" alt="Compress Archive Command" width="1102" height="267" srcset="https://www.technig.com/wp-content/uploads/2015/11/Compress-Archive-Command.jpg 1102w, https://www.technig.com/wp-content/uploads/2015/11/Compress-Archive-Command-300x73.jpg 300w, https://www.technig.com/wp-content/uploads/2015/11/Compress-Archive-Command-768x186.jpg 768w, https://www.technig.com/wp-content/uploads/2015/11/Compress-Archive-Command-1024x248.jpg 1024w" sizes="(max-width: 1102px) 100vw, 1102px" /></a><figcaption id="caption-attachment-4011" class="wp-caption-text">Compress Archive Command</figcaption></figure>
<p>To set the path and distination path for compressed folder, type the below command. For instance I compress Files folder form system directory and create it to my desktop.</p>
<blockquote><p> <strong>Compress-Archive -Path Files -DestinationPath C:\Users\Shais\Desktop\Files</strong></p></blockquote>
<figure id="attachment_4012" aria-describedby="caption-attachment-4012" style="width: 1241px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2015/11/Compress-a-Folder-wtih-Command-Line-in-Windows.jpg"><img decoding="async" class="size-full wp-image-4012" src="http://3.90.216.52/wp-content/uploads/2015/11/Compress-a-Folder-wtih-Command-Line-in-Windows.jpg" alt="Compress a Folder wtih Command Line in Windows" width="1241" height="114" srcset="https://www.technig.com/wp-content/uploads/2015/11/Compress-a-Folder-wtih-Command-Line-in-Windows.jpg 1241w, https://www.technig.com/wp-content/uploads/2015/11/Compress-a-Folder-wtih-Command-Line-in-Windows-300x28.jpg 300w, https://www.technig.com/wp-content/uploads/2015/11/Compress-a-Folder-wtih-Command-Line-in-Windows-768x71.jpg 768w, https://www.technig.com/wp-content/uploads/2015/11/Compress-a-Folder-wtih-Command-Line-in-Windows-1024x94.jpg 1024w" sizes="(max-width: 1241px) 100vw, 1241px" /></a><figcaption id="caption-attachment-4012" class="wp-caption-text">Compress a Folder with Command Line in Windows</figcaption></figure>
<p>Simply done and finished.</p>
<p>To set password Zip files in Windows, currently use the third party application, such as <a href="http://www.7-zip.org/" target="_blank" rel="noopener noreferrer">7Zip</a>. 7zip is a free open source tools for this purpose.</p>
<figure id="attachment_4014" aria-describedby="caption-attachment-4014" style="width: 834px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2015/11/Set-Password-Zip-Files-with-7Zip.jpg"><img loading="lazy" decoding="async" class="size-full wp-image-4014" src="http://3.90.216.52/wp-content/uploads/2015/11/Set-Password-Zip-Files-with-7Zip.jpg" alt="Set Password Zip Files with 7Zip" width="834" height="773" srcset="https://www.technig.com/wp-content/uploads/2015/11/Set-Password-Zip-Files-with-7Zip.jpg 834w, https://www.technig.com/wp-content/uploads/2015/11/Set-Password-Zip-Files-with-7Zip-300x278.jpg 300w, https://www.technig.com/wp-content/uploads/2015/11/Set-Password-Zip-Files-with-7Zip-768x712.jpg 768w" sizes="(max-width: 834px) 100vw, 834px" /></a><figcaption id="caption-attachment-4014" class="wp-caption-text">Set Password Zip Files with 7Zip</figcaption></figure>
<h2>Set Password Zip Files with command In Linux</h2>
<p>This article is on Ubuntu Linux, but works the same for all Linux operating system. The command tool is using to zip and protect a folder is Zip command.</p>
<p>To see the help of a command in Linux, simply type the name of command then press enter to show all options. And type &#8220;<strong>man zip</strong>&#8221; to show the manual help of zip command. The below screenshot is the options of zip command.</p>
<figure id="attachment_3994" aria-describedby="caption-attachment-3994" style="width: 726px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2015/11/Zip-Command-In-Ubuntu-Linux.jpg"><img loading="lazy" decoding="async" class="size-full wp-image-3994" src="http://3.90.216.52/wp-content/uploads/2015/11/Zip-Command-In-Ubuntu-Linux.jpg" alt="Zip Command In Ubuntu Linux" width="726" height="465" srcset="https://www.technig.com/wp-content/uploads/2015/11/Zip-Command-In-Ubuntu-Linux.jpg 726w, https://www.technig.com/wp-content/uploads/2015/11/Zip-Command-In-Ubuntu-Linux-300x192.jpg 300w, https://www.technig.com/wp-content/uploads/2015/11/Zip-Command-In-Ubuntu-Linux-210x136.jpg 210w" sizes="(max-width: 726px) 100vw, 726px" /></a><figcaption id="caption-attachment-3994" class="wp-caption-text">Zip Command Help and Options In Ubuntu Linux</figcaption></figure>
<ol>
<li>Open the Linux <strong>terminal</strong> and go to folder directory you want zip and protect it. I want to protect my project folder which located on my <strong>Desktop</strong>.</li>
</ol>
<figure id="attachment_3995" aria-describedby="caption-attachment-3995" style="width: 601px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2015/11/How-to-protect-zip-file-with-command-in-Linux-.jpg"><img loading="lazy" decoding="async" class="size-full wp-image-3995" src="http://3.90.216.52/wp-content/uploads/2015/11/How-to-protect-zip-file-with-command-in-Linux-.jpg" alt="How to protect zip file with command in Linux" width="601" height="207" srcset="https://www.technig.com/wp-content/uploads/2015/11/How-to-protect-zip-file-with-command-in-Linux-.jpg 601w, https://www.technig.com/wp-content/uploads/2015/11/How-to-protect-zip-file-with-command-in-Linux--300x103.jpg 300w" sizes="(max-width: 601px) 100vw, 601px" /></a><figcaption id="caption-attachment-3995" class="wp-caption-text">How to protect zip file with command in Linux</figcaption></figure>
<p><strong>2.</strong> In order to zip the projects folder, type &#8220;<strong>zip -er Projects.zip Projects</strong>&#8221; hit enter and type the password twice.</p>
<figure id="attachment_3996" aria-describedby="caption-attachment-3996" style="width: 728px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2015/11/Protect-Zip-File-In-Linux.jpg"><img loading="lazy" decoding="async" class="size-full wp-image-3996" src="http://3.90.216.52/wp-content/uploads/2015/11/Protect-Zip-File-In-Linux.jpg" alt="Set Password Zip Files with Command in Linux to Protect it" width="728" height="239" srcset="https://www.technig.com/wp-content/uploads/2015/11/Protect-Zip-File-In-Linux.jpg 728w, https://www.technig.com/wp-content/uploads/2015/11/Protect-Zip-File-In-Linux-300x98.jpg 300w" sizes="(max-width: 728px) 100vw, 728px" /></a><figcaption id="caption-attachment-3996" class="wp-caption-text">Set Password Zip Files with Command in Linux to Protect it</figcaption></figure>
<p>OK, the Projects folder has been archived as zip file and protected with a password. The <strong>-e</strong> option enables encryption for your zip file and set the password also. The <strong>r</strong> option will add all files in Projects folder to  the zip file. The <strong>Projects.zip</strong> will be create from the <strong>Projects</strong> folder.</p>
<h2>Compress and Protect Folder with GUI</h2>
<p>Someone tell that the CLI is hard. So if you don&#8217;t like command line interface, then compress folders with graphical interface. Just right click the folder and select <strong>Compress</strong>.</p>
<figure id="attachment_3998" aria-describedby="caption-attachment-3998" style="width: 349px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2015/11/How-to-Compress-File-in-Linux.jpg"><img loading="lazy" decoding="async" class="size-full wp-image-3998" src="http://3.90.216.52/wp-content/uploads/2015/11/How-to-Compress-File-in-Linux.jpg" alt="How to Compress File in Linux" width="349" height="513" srcset="https://www.technig.com/wp-content/uploads/2015/11/How-to-Compress-File-in-Linux.jpg 349w, https://www.technig.com/wp-content/uploads/2015/11/How-to-Compress-File-in-Linux-204x300.jpg 204w" sizes="(max-width: 349px) 100vw, 349px" /></a><figcaption id="caption-attachment-3998" class="wp-caption-text">How to Compress File in Linux</figcaption></figure>
<p>On the <strong>Compress</strong> page, select <strong>.zip</strong> extension then expand <strong>Other Options</strong> and type a complex strong password. Click <strong>Create</strong> to compress the folder&#8217;s files.</p>
<figure id="attachment_3999" aria-describedby="caption-attachment-3999" style="width: 578px" class="wp-caption aligncenter"><a href="http://3.90.216.52/wp-content/uploads/2015/11/Set-Password-to-a-Zip-file.jpg"><img loading="lazy" decoding="async" class="size-full wp-image-3999" src="http://3.90.216.52/wp-content/uploads/2015/11/Set-Password-to-a-Zip-file.jpg" alt="Set Password Zip Files with Command" width="578" height="295" srcset="https://www.technig.com/wp-content/uploads/2015/11/Set-Password-to-a-Zip-file.jpg 578w, https://www.technig.com/wp-content/uploads/2015/11/Set-Password-to-a-Zip-file-300x153.jpg 300w" sizes="(max-width: 578px) 100vw, 578px" /></a><figcaption id="caption-attachment-3999" class="wp-caption-text">Set Password Zip Files with Command</figcaption></figure>
<p>Yes, that&#8217;s simple and easy. So don&#8217;t afraid of command line interface, it is really great, fast, and powerful interface.</p>
<h2>Set Password Zip Files with Command in Mac OS</h2>
<p>In a Mac OS compressing folder work the same as Linux environment So do apply it with Linux section of this article with Zip utility. If you’re familiar with the command line, the syntax of the encrypted zip command is as follows.</p>
<blockquote><p><strong>zip -e [archive] [file]</strong></p></blockquote>
<p>For encrypting multiple files and folders with a password, the syntax would be as follows.</p>
<blockquote><p><strong>zip -er [archive] [folder]</strong></p></blockquote>
<p>Finally hope it would be informative for you to learned set password zip files with command line utility in different operating system.</p>
<p>The post <a href="https://www.technig.com/password-zip-files-with-command/">How to Set Password Zip Files with Command in all OS?</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/password-zip-files-with-command/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3993</post-id>	</item>
	</channel>
</rss>
