<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://library.morph.zone/index.php?action=history&amp;feed=atom&amp;title=Shell_Commands%2FProtect</id>
		<title>Shell Commands/Protect - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://library.morph.zone/index.php?action=history&amp;feed=atom&amp;title=Shell_Commands%2FProtect"/>
		<link rel="alternate" type="text/html" href="https://library.morph.zone/index.php?title=Shell_Commands/Protect&amp;action=history"/>
		<updated>2026-04-04T06:54:03Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://library.morph.zone/index.php?title=Shell_Commands/Protect&amp;diff=1971&amp;oldid=prev</id>
		<title>JPV: Created page with &quot;'''Protect''' - Changes the protection flags of a file  FILE/A, FLAGS, ADD/S, SUB/S, ALL/S, QUIET/S  &lt;nowiki&gt; FILE  - Medatory: name/pattern of the files...&quot;</title>
		<link rel="alternate" type="text/html" href="https://library.morph.zone/index.php?title=Shell_Commands/Protect&amp;diff=1971&amp;oldid=prev"/>
				<updated>2015-03-03T11:44:40Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Protect&amp;#039;&amp;#039;&amp;#039; - Changes the protection flags of a file  FILE/A, FLAGS, ADD/S, SUB/S, ALL/S, QUIET/S  &amp;lt;nowiki&amp;gt; FILE  - Medatory: name/pattern of the files...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Protect''' - Changes the protection flags of a file&lt;br /&gt;
&lt;br /&gt;
FILE/A, FLAGS, ADD/S, SUB/S, ALL/S, QUIET/S&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
FILE  - Medatory: name/pattern of the files                                    &lt;br /&gt;
FLAGS - Flags to modify (see below)&lt;br /&gt;
ADD   - Add the specified flags&lt;br /&gt;
SUB   - Remove the specified flags&lt;br /&gt;
ALL   - Modify flags of all files matching entered pattern&lt;br /&gt;
QUIET - Removes text messages&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
The protection bits are represented by letters:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
s - The file is a script&lt;br /&gt;
p - The file is a pure command and can be made resident&lt;br /&gt;
a - The file has been archived&lt;br /&gt;
r - The file can be read&lt;br /&gt;
w - The file can be written to (altered)&lt;br /&gt;
e - The file is executable (a program)&lt;br /&gt;
d - The file or directory can be deleted.&lt;br /&gt;
    (Files within a delete-protected directory can still be deleted.)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
You have three ways to set or clear protection flags of a file:&lt;br /&gt;
&lt;br /&gt;
# Specify the protection bits you want to set using the FLAGS argument without any other argument.&lt;br /&gt;
# Use ADD and/or SUB followed by the bits you want to set/clear&lt;br /&gt;
# Use '+' followed by the bits you want to set and '-' followed by the bits you want to clear.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
 MorphOS:&amp;gt; Protect myfile +sr&lt;br /&gt;
 Sets the script and read bit of file 'myfile'&lt;br /&gt;
&lt;br /&gt;
 MorphOS:&amp;gt; Protect #?.txt w SUB&lt;br /&gt;
 clears the write bit of all files matching pattern '#?.txt'&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>JPV</name></author>	</entry>

	</feed>