<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Top_Chmod_Command_Examples_for_Beginners</id>
		<title>Top Chmod Command Examples for Beginners - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Top_Chmod_Command_Examples_for_Beginners"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Top_Chmod_Command_Examples_for_Beginners&amp;action=history"/>
		<updated>2026-06-04T06:15:55Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=Top_Chmod_Command_Examples_for_Beginners&amp;diff=938&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==Top Chmod Command Examples for Beginners==  Let us review how to use symbolic representation with chmod.  Following are the symbolic representation of three different roles:...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Top_Chmod_Command_Examples_for_Beginners&amp;diff=938&amp;oldid=prev"/>
				<updated>2018-05-05T17:51:46Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Top Chmod Command Examples for Beginners==  Let us review how to use symbolic representation with chmod.  Following are the symbolic representation of three different roles:...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Top Chmod Command Examples for Beginners==&lt;br /&gt;
&lt;br /&gt;
Let us review how to use symbolic representation with chmod.&lt;br /&gt;
&lt;br /&gt;
Following are the symbolic representation of three different roles:&lt;br /&gt;
&lt;br /&gt;
u is for user,&lt;br /&gt;
g is for group,&lt;br /&gt;
and o is for others.&lt;br /&gt;
Following are the symbolic representation of three different permissions:&lt;br /&gt;
&lt;br /&gt;
r is for read permission,&lt;br /&gt;
w is for write permission,&lt;br /&gt;
x is for execute permission.&lt;br /&gt;
Following are few examples on how to use the symbolic representation on chmod.&lt;br /&gt;
&lt;br /&gt;
===Add single permission to a file/directory===&lt;br /&gt;
Changing permission to a single set. + symbol means adding permission. For example, do the following to give execute permission for the user irrespective of anything else:&lt;br /&gt;
&lt;br /&gt;
 $ chmod u+x filename&lt;br /&gt;
===Add multiple permission to a file/directory===&lt;br /&gt;
Use comma to separate the multiple permission sets as shown below.&lt;br /&gt;
&lt;br /&gt;
 $ chmod u+r,g+x filename&lt;br /&gt;
===Remove permission from a file/directory===&lt;br /&gt;
Following example removes read and write permission for the user.&lt;br /&gt;
&lt;br /&gt;
 $ chmod u-rx filename&lt;br /&gt;
===Change permission for all roles on a file/directory===&lt;br /&gt;
Following example assigns execute privilege to user, group and others (basically anybody can execute this file).&lt;br /&gt;
&lt;br /&gt;
 $ chmod a+x filename&lt;br /&gt;
===Make permission for a file same as another file (using reference)===&lt;br /&gt;
If you want to change a file permission same as another file, use the reference option as shown below. In this example, file2’s permission will be set exactly same as file1’s permission.&lt;br /&gt;
&lt;br /&gt;
 $ chmod --reference=file1 file2&lt;br /&gt;
===Apply the permission to all the files under a directory recursively===&lt;br /&gt;
Use option -R to change the permission recursively as shown below.&lt;br /&gt;
&lt;br /&gt;
 $ chmod -R 755 directory-name/&lt;br /&gt;
===Change execute permission only on the directories (files are not affected)===&lt;br /&gt;
On a particular directory if you have multiple sub-directories and files, the following command will assign execute permission only to all the sub-directories in the current directory (not the files in the current directory).&lt;br /&gt;
&lt;br /&gt;
 $ chmod u+X *&lt;br /&gt;
Note: If the files has execute permission already for either the group or others, the above command will assign the execute permission to the user&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>