{"id":307,"date":"2016-01-17T22:34:05","date_gmt":"2016-01-17T20:34:05","guid":{"rendered":"http:\/\/www.systemcodegeeks.com\/?p=307"},"modified":"2018-05-31T15:58:24","modified_gmt":"2018-05-31T12:58:24","slug":"linux-chown-example","status":"publish","type":"post","link":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/","title":{"rendered":"Linux chown Example"},"content":{"rendered":"<h2>1. Introduction<\/h2>\n<p>In this example,\u00a0we feature a comprehensive Linux chown Example. We will see how to use the Unix-like system command <code>chown<\/code><\/p>\n<p>The <code>chown<\/code> command changes the owner and owning group of files.<\/p>\n<h3>1.1 Linux Machine<\/h3>\n<p>If you are on Windows OS, before we get into the details of this command, I would suggest you to have a Linux machine for better understanding of the usage of this command.<\/p>\n<p>Not necessarily you need to physically have a separate machine. You can very much have a virtual Linux machine on a virtual box like Oracle VirtualBox.<br \/>\n[ulp id=&#8217;SG9vnnKgRCD7iZxf&#8217;]<\/p>\n<h2>2. Syntax<\/h2>\n<pre class=\"brush:bash\">chown [<i>OPTION<\/i>]... [<i>OWNER<\/i>][:[<i>GROUP<\/i>]] <i>FILE<\/i>...<\/pre>\n<pre class=\"brush:bash\">chown [<i>OPTION<\/i>]... --reference=<i>RFILE<\/i> <i>FILE<\/i>...<\/pre>\n<h2>3. Description<\/h2>\n<p><b>chown<\/b> changes the user and\/or group ownership of each given file.<\/p>\n<p>If only an owner is given, that user is made the owner of each given file, and the files&#8217; group is not changed.<\/p>\n<p>If the owner is followed by a colon and a group name, with no spaces between them, the group ownership of the files is changed as well.<\/p>\n<p>If a colon but no group name follows the user name, that user is made the owner of the files and the group of the files is changed to that user&#8217;s login group.<\/p>\n<p>If the colon and group are given, but the owner is omitted, only the group of the files is changed; in this case, <b>chown<\/b> performs the same function as <b>chgrp<\/b>. If only a colon is given, or if the entire operand is empty, neither the owner nor the group is changed.<\/p>\n<h2>4. Options<\/h2>\n<p>Here is the list of options available to use with <code>chown<\/code> command<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>-c<\/b>, <b>&#8211;changes<\/b><\/td>\n<td>like <b>verbose<\/b> but report only when a change is made.<\/td>\n<\/tr>\n<tr>\n<td><b>-f<\/b>, <b>&#8211;silent<\/b>, <b>&#8211;quiet<\/b><\/td>\n<td>suppress most error messages.<\/td>\n<\/tr>\n<tr>\n<td><b>-v<\/b>, <b>&#8211;verbose<\/b><\/td>\n<td>output a diagnostic for every file processed.<\/td>\n<\/tr>\n<tr>\n<td><b>&#8211;dereference<\/b><\/td>\n<td>affect the referenced file of each symbolic link rather than the symbolic link itself. This is the default.<\/td>\n<\/tr>\n<tr>\n<td><b>-h<\/b>, <b>&#8211;no-dereference<\/b><\/td>\n<td>affect symbolic links instead of any referenced file. This is useful only on systems that can change the ownership of a symlink.<\/td>\n<\/tr>\n<tr>\n<td><b>&#8211;from<\/b><i>=CURRENT_OWNER:CURRENT_GROUP<\/i><\/td>\n<td>change the owner and\/or group of each file only if its current owner and\/or group match those specified here. Either may be omitted, in which case a match is not required for the omitted attribute.<\/td>\n<\/tr>\n<tr>\n<td><b>&#8211;no-preserve-root<\/b><\/td>\n<td>do not treat &#8216;<b>\/<\/b>&#8216; (the root directory) in any special way. This is the default.<\/td>\n<\/tr>\n<tr>\n<td><b>&#8211;preserve-root<\/b><\/td>\n<td>Do not operate recursively on &#8216;<b>\/<\/b>&#8216;.<\/td>\n<\/tr>\n<tr>\n<td><b>&#8211;reference=RFILE<\/b><\/td>\n<td>use RFILE&#8217;s owner and group rather than specifying <b>OWNER:GROUP<\/b> values<\/td>\n<\/tr>\n<tr>\n<td><b>-R<\/b>, <b>&#8211;recursive<\/b><\/td>\n<td>operate on files and directories recursively.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>The following options modify how a hierarchy is traversed when the <b>-R<\/b> option is also specified. If more than one is specified, only the final one takes effect.<\/p>\n<table>\n<tbody>\n<tr>\n<td><b>-H<\/b><\/td>\n<td>if a command line argument is a symbolic link to a directory, traverse it.<\/td>\n<\/tr>\n<tr>\n<td><b>-L<\/b><\/td>\n<td>traverse every symbolic link to a directory encountered<\/td>\n<\/tr>\n<tr>\n<td><b>-P<\/b><\/td>\n<td>do not traverse any symbolic links. This is the default.<\/td>\n<\/tr>\n<tr>\n<td><b>&#8211;help<\/b><\/td>\n<td>display this help and exit.<\/td>\n<\/tr>\n<tr>\n<td><b>&#8211;version<\/b><\/td>\n<td>output version information and exit.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>Owner is unchanged if unspecified. Group is unchanged if unspecified, or changed to the login group if implied by a &#8216;<b>:<\/b>&#8216; following a symbolic <b>OWNER<\/b>. <b>OWNER<\/b> and <b>GROUP<\/b> may be numeric as well as symbolic.<\/p>\n<h2>5. Examples<\/h2>\n<p>Please refer to the image shown below.<\/p>\n<figure id=\"attachment_339\" aria-describedby=\"caption-attachment-339\" style=\"width: 656px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_1001.png\" rel=\"attachment wp-att-339\"><img decoding=\"async\" class=\"wp-image-339 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_1001.png\" alt=\"Linux chown Example: List Command Details\" width=\"656\" height=\"391\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_1001.png 656w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_1001-300x179.png 300w\" sizes=\"(max-width: 656px) 100vw, 656px\" \/><\/a><figcaption id=\"caption-attachment-339\" class=\"wp-caption-text\">List Command Details<\/figcaption><\/figure>\n<p>We will see the details of the information given above with yellow rectangle mark.<\/p>\n<ul>\n<li><strong>1st Character \u2013 File Type:<\/strong> First character specifies the type of the file.In the picture above the &#8216;d&#8217; in the 1st character indicates that this is a directory.\n<p>Following are the possible file type options in the 1st character of the ls -l output.<\/p>\n<ul>\n<li><strong>Field Explanation<\/strong><\/li>\n<li>\u2013 normal file<\/li>\n<li>d directory<\/li>\n<li>s socket file<\/li>\n<li>l link file<\/li>\n<\/ul>\n<\/li>\n<li><strong>Field 1 \u2013 File Permissions:<\/strong>The remaining 9 characters, in order, refer to the read\/write\/execute(rwx) permission for the user owner, the read\/write\/execute(rwx) permission for the group owner, and then the read\/write\/execute(rwx) permission for everyone else.In this example, <code>rwxr-xr-x<\/code> indicates read-write-execute permission for user, read-execute permission for group, and read-execute permission for others.<\/li>\n<li><strong>Field 2 \u2013 Number of links:<\/strong> Second field specifies the number of links for that file. In this example, 2 indicates 2 links to this file.<\/li>\n<li><strong>Field 3 \u2013 <\/strong><strong>Owner:<\/strong> Third field specifies owner of the file. In this example, this file is owned by username \u2018root\u2019.<\/li>\n<li><strong>Field 4 \u2013 Group:<\/strong> Fourth field specifies the group of the file. In this example, this file belongs to \u201droot\u2019 group.<\/li>\n<li><strong>Field 5<\/strong><strong> \u2013 Size:<\/strong> Fifth field specifies the size of file. In this example, \u20184096\u2019 indicates the file size.<\/li>\n<li><strong>Field 6 \u2013 Last modified date &amp; time:<\/strong> Sixth field specifies the date and time of the last modification of the file. In this example, \u2018Jan 15 19:46\u2032 specifies the last modification time of the file.<\/li>\n<li><strong> Field 7 \u2013 File name: <\/strong>The last field is the name of the file\/directory. In this example, the file name is &#8216;gmr&#8217;<\/li>\n<\/ul>\n<h3>5.1 Change User Owner<\/h3>\n<p>Please refer the image shown below. In this the user owner of a folder has been changed to a new user.<\/p>\n<figure id=\"attachment_347\" aria-describedby=\"caption-attachment-347\" style=\"width: 663px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_0003.png\" rel=\"attachment wp-att-347\"><img decoding=\"async\" class=\"wp-image-347 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_0003.png\" alt=\"Linux chown Example: Change Owner\" width=\"663\" height=\"469\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_0003.png 663w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_0003-300x212.png 300w\" sizes=\"(max-width: 663px) 100vw, 663px\" \/><\/a><figcaption id=\"caption-attachment-347\" class=\"wp-caption-text\">Change Owner<\/figcaption><\/figure>\n<p>But, user owner has been changed only for the directory &#8216;projects&#8217;. Ownership of the inner files or directories will remain the same, unchanged.<\/p>\n<p>If the flag &#8216;-R&#8217; is used, it will change the owner for inner files \/ directories also.<\/p>\n<p>Recursively grant ownership of the directory <b>projects<\/b>, and all files and sub-directories, to user <b>gmr<\/b>.<\/p>\n<pre class=\"bash\">chown -R gmr projects<\/pre>\n<h3>5.2 Copy ownership from one file to another<\/h3>\n<p>This can be done using the \u2018\u2013reference\u2019 flag.<\/p>\n<pre class=\"bash\"># chown --reference=file tmpfile<\/pre>\n<p>As shown below, ownership of &#8216;javadocs&#8217; folder has been copied to &#8216;projects&#8217; folder.<\/p>\n<figure id=\"attachment_355\" aria-describedby=\"caption-attachment-355\" style=\"width: 664px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_0004.png\" rel=\"attachment wp-att-355\"><img decoding=\"async\" class=\"wp-image-355 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_0004.png\" alt=\"Linux chown Example: Copy ownership\" width=\"664\" height=\"470\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_0004.png 664w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_0004-300x212.png 300w\" sizes=\"(max-width: 664px) 100vw, 664px\" \/><\/a><figcaption id=\"caption-attachment-355\" class=\"wp-caption-text\">Copy ownership<\/figcaption><\/figure>\n<h3>5.3 Change the group of a file<\/h3>\n<p>Using <code>chown<\/code> command, the group (that a file belongs to) can also be changed.<\/p>\n<figure id=\"attachment_357\" aria-describedby=\"caption-attachment-357\" style=\"width: 666px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_0005.png\" rel=\"attachment wp-att-357\"><img decoding=\"async\" class=\"wp-image-357 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_0005.png\" alt=\"Linux chown Example: Change group name\" width=\"666\" height=\"471\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_0005.png 666w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/pg_0005-300x212.png 300w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><\/a><figcaption id=\"caption-attachment-357\" class=\"wp-caption-text\">Change group name<\/figcaption><\/figure>\n<h2>6. Conclusion<\/h2>\n<p>In this Linux chown Example, we have seen how to use Linux command <code>chown<\/code> with different options.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Introduction In this example,\u00a0we feature a comprehensive Linux chown Example. We will see how to use the Unix-like system command chown The chown command changes the owner and owning group of files. 1.1 Linux Machine If you are on Windows OS, before we get into the details of this command, I would suggest you &hellip;<\/p>\n","protected":false},"author":12,"featured_media":192,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-307","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux chown Example - System Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Interested to learn more about linux chown? Then check out our detailed Linux chown Example where we will discuss thouroughly how to use the Unix-like system command chown.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux chown Example - System Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Interested to learn more about linux chown? Then check out our detailed Linux chown Example where we will discuss thouroughly how to use the Unix-like system command chown.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/\" \/>\n<meta property=\"og:site_name\" content=\"System Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/systemcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-17T20:34:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-05-31T12:58:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Mohanraj Gurubatham\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mohanraj Gurubatham\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/\"},\"author\":{\"name\":\"Mohanraj Gurubatham\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/2606f4c3dc72df862262710f11a8ccca\"},\"headline\":\"Linux chown Example\",\"datePublished\":\"2016-01-17T20:34:05+00:00\",\"dateModified\":\"2018-05-31T12:58:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/\"},\"wordCount\":973,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"articleSection\":[\"BASH\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/\",\"name\":\"Linux chown Example - System Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"datePublished\":\"2016-01-17T20:34:05+00:00\",\"dateModified\":\"2018-05-31T12:58:24+00:00\",\"description\":\"Interested to learn more about linux chown? Then check out our detailed Linux chown Example where we will discuss thouroughly how to use the Unix-like system command chown.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#primaryimage\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.systemcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shell Scripting\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"BASH\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/bash\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Linux chown Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"name\":\"System Code Geeks\",\"description\":\"Operating System Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/systemcodegeeks\",\"https:\/\/x.com\/systemcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/2606f4c3dc72df862262710f11a8ccca\",\"name\":\"Mohanraj Gurubatham\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a1d4fc803717e4ed9c7cae66661c39b11c850b23a765e5d699ee69fd38188516?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a1d4fc803717e4ed9c7cae66661c39b11c850b23a765e5d699ee69fd38188516?s=96&d=mm&r=g\",\"caption\":\"Mohanraj Gurubatham\"},\"description\":\"Mohanraj Gurubatham is an Engineering graduate and currently running a Technology consulting firm. He also has got a post graduation in Master of Business Administration specialized in Retail Sales. Basically he is a Java and Android enthusiast and he is very much interested in using java whether it be a core java or using frameworks like spring. He has more than 18 years of practical experience in software development using Java\/EE Technologies and worked as a technical architect for more than 9 years.\",\"sameAs\":[\"http:\/\/www.systemcodegeeks.com\/\",\"https:\/\/www.linkedin.com\/in\/gmohanraj\"],\"url\":\"https:\/\/www.systemcodegeeks.com\/author\/mohanraj-gurubatham\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux chown Example - System Code Geeks - 2026","description":"Interested to learn more about linux chown? Then check out our detailed Linux chown Example where we will discuss thouroughly how to use the Unix-like system command chown.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/","og_locale":"en_US","og_type":"article","og_title":"Linux chown Example - System Code Geeks - 2026","og_description":"Interested to learn more about linux chown? Then check out our detailed Linux chown Example where we will discuss thouroughly how to use the Unix-like system command chown.","og_url":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/","og_site_name":"System Code Geeks","article_publisher":"https:\/\/www.facebook.com\/systemcodegeeks","article_published_time":"2016-01-17T20:34:05+00:00","article_modified_time":"2018-05-31T12:58:24+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","type":"image\/jpeg"}],"author":"Mohanraj Gurubatham","twitter_card":"summary_large_image","twitter_creator":"@systemcodegeeks","twitter_site":"@systemcodegeeks","twitter_misc":{"Written by":"Mohanraj Gurubatham","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#article","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/"},"author":{"name":"Mohanraj Gurubatham","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/2606f4c3dc72df862262710f11a8ccca"},"headline":"Linux chown Example","datePublished":"2016-01-17T20:34:05+00:00","dateModified":"2018-05-31T12:58:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/"},"wordCount":973,"commentCount":0,"publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","articleSection":["BASH"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/","url":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/","name":"Linux chown Example - System Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#primaryimage"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","datePublished":"2016-01-17T20:34:05+00:00","dateModified":"2018-05-31T12:58:24+00:00","description":"Interested to learn more about linux chown? Then check out our detailed Linux chown Example where we will discuss thouroughly how to use the Unix-like system command chown.","breadcrumb":{"@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#primaryimage","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.systemcodegeeks.com\/shell-scripting\/bash\/linux-chown-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systemcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Shell Scripting","item":"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/"},{"@type":"ListItem","position":3,"name":"BASH","item":"https:\/\/www.systemcodegeeks.com\/category\/shell-scripting\/bash\/"},{"@type":"ListItem","position":4,"name":"Linux chown Example"}]},{"@type":"WebSite","@id":"https:\/\/www.systemcodegeeks.com\/#website","url":"https:\/\/www.systemcodegeeks.com\/","name":"System Code Geeks","description":"Operating System Developers Resource Center","publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.systemcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.systemcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/systemcodegeeks","https:\/\/x.com\/systemcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/2606f4c3dc72df862262710f11a8ccca","name":"Mohanraj Gurubatham","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a1d4fc803717e4ed9c7cae66661c39b11c850b23a765e5d699ee69fd38188516?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a1d4fc803717e4ed9c7cae66661c39b11c850b23a765e5d699ee69fd38188516?s=96&d=mm&r=g","caption":"Mohanraj Gurubatham"},"description":"Mohanraj Gurubatham is an Engineering graduate and currently running a Technology consulting firm. He also has got a post graduation in Master of Business Administration specialized in Retail Sales. Basically he is a Java and Android enthusiast and he is very much interested in using java whether it be a core java or using frameworks like spring. He has more than 18 years of practical experience in software development using Java\/EE Technologies and worked as a technical architect for more than 9 years.","sameAs":["http:\/\/www.systemcodegeeks.com\/","https:\/\/www.linkedin.com\/in\/gmohanraj"],"url":"https:\/\/www.systemcodegeeks.com\/author\/mohanraj-gurubatham\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/comments?post=307"}],"version-history":[{"count":0,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/307\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media\/192"}],"wp:attachment":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media?parent=307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/categories?post=307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/tags?post=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}