{"id":25860,"date":"2020-11-17T21:34:33","date_gmt":"2020-11-17T12:34:33","guid":{"rendered":"https:\/\/tadtadya.com\/en\/?p=25860"},"modified":"2021-01-25T15:05:40","modified_gmt":"2021-01-25T06:05:40","slug":"linux-chmod-changing-file-and-directory-permissions-2","status":"publish","type":"post","link":"https:\/\/tadtadya.com\/en\/linux-chmod-changing-file-and-directory-permissions-2\/","title":{"rendered":"Linux chmod, change file and directory permissions"},"content":{"rendered":"\n<p>The chmod command is used to change the permissions on files and directories.<\/p>\n\n\n\n<p>It also explains how to read file and directory information.<\/p>\n\n\n\n<!--more-->\n\n\n\n<div class=\"wp-block-origin-block-msg-box\"><div class=\"msgbox msgbox-notice v1\"><i class=\"fas fa-exclamation-triangle icon\"><\/i><div class=\"msg\">\n<p>This is written by a Japanese who can't speak English with the help of translation application. Sorry if it's not good.<\/p>\n<\/div><\/div><\/div>\n\n\n<div id=\"toc\" class=\"idx-lst\">\n\t<input type=\"checkbox\" class=\"chk\" id=\"idx-lst-chk\" name=\"btn\" \/>\n\t<label class=\"idx-lst-hd\" for=\"idx-lst-chk\"><i class=\"fa-solid fa-check-double\"><\/i>Contents<\/label>\n\t<div class=\"idx-lst-bd\">\n\t\t<ul class=\"idx-lst-ul\">\n\t\t\t\t\t\t\t<li class=\"idx-lst-li idt0\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-hand-point-right ico\"><\/i>\n\t\t\t\t\t\t\t\t\t\t<a href=\"#index-list-1\" title=\"Commands to change permissions\">Commands to change permissions<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"idx-lst-li idt1\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-hand-point-right ico\"><\/i>\n\t\t\t\t\t\t\t\t\t\t<a href=\"#index-list-2\" title=\"Table of permination values\">Table of permination values<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"idx-lst-li idt0\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-hand-point-right ico\"><\/i>\n\t\t\t\t\t\t\t\t\t\t<a href=\"#index-list-3\" title=\"How to read file and directory information in Linux\">How to read file and directory information in Linux<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"idx-lst-li idt1\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-hand-point-right ico\"><\/i>\n\t\t\t\t\t\t\t\t\t\t<a href=\"#index-list-4\" title=\"File Types\">File Types<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"idx-lst-li idt1\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-hand-point-right ico\"><\/i>\n\t\t\t\t\t\t\t\t\t\t<a href=\"#index-list-5\" title=\"Permission\">Permission<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"idx-lst-li idt1\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-hand-point-right ico\"><\/i>\n\t\t\t\t\t\t\t\t\t\t<a href=\"#index-list-6\" title=\"Number of hard links\">Number of hard links<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"idx-lst-li idt1\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-hand-point-right ico\"><\/i>\n\t\t\t\t\t\t\t\t\t\t<a href=\"#index-list-7\" title=\"Names of owners and groups\">Names of owners and groups<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"idx-lst-li idt1\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-hand-point-right ico\"><\/i>\n\t\t\t\t\t\t\t\t\t\t<a href=\"#index-list-8\" title=\"File Size\">File Size<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"idx-lst-li idt1\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-hand-point-right ico\"><\/i>\n\t\t\t\t\t\t\t\t\t\t<a href=\"#index-list-9\" title=\"Update Date\">Update Date<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"idx-lst-li idt1\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-hand-point-right ico\"><\/i>\n\t\t\t\t\t\t\t\t\t\t<a href=\"#index-list-10\" title=\"The name of the file or directory\">The name of the file or directory<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t<li class=\"idx-lst-li idt0\">\n\t\t\t\t\t\t\t\t\t\t\t<i class=\"fa-regular fa-hand-point-right ico\"><\/i>\n\t\t\t\t\t\t\t\t\t\t<a href=\"#index-list-11\" title=\"Finally.\">Finally.<\/a>\n\t\t\t\t<\/li>\n\t\t\t\t\t\t<\/ul>\n\t<\/div>\n<\/div>\n\n\n\n\n<h2 class=\"is-style-h2df\" id=\"index-list-1\">Commands to change permissions<\/h2>\n\n\n\n<p>The chmod command to change file and directory permissions is used in this way.<\/p>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-format\">\n<p>chmod 777 target<\/p>\n<\/div>\n\n\n\n<p>Three numbers, from left to right.<\/p>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-default\">\n<p>Logged in users<\/p>\n\n\n\n<p>group<\/p>\n\n\n\n<p>Ohter Users<\/p>\n<\/div>\n\n\n\n<p>permissions.<\/p>\n\n\n\n<p>The values are from 0 to 7 and are shown in the following table.<\/p>\n\n\n\n<h3 class=\"is-style-h3df\" id=\"index-list-2\">Table of permination values<\/h3>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><th>value<\/th><th>binary digits<\/th><th>symbol<\/th><th>meaning<\/th><\/tr><tr><td>0<\/td><td>000<\/td><td>---<\/td><td>unauthorized<\/td><\/tr><tr><td>1<\/td><td>001<\/td><td>--x<\/td><td>execute<\/td><\/tr><tr><td>2<\/td><td>010<\/td><td>-w-<\/td><td>read<\/td><\/tr><tr><td>3<\/td><td>011<\/td><td>-wx<\/td><td>write, execute<\/td><\/tr><tr><td>4<\/td><td>100<\/td><td>r--<\/td><td>read<\/td><\/tr><tr><td>5<\/td><td>101<\/td><td>r-x<\/td><td>read, execute<\/td><\/tr><tr><td>6<\/td><td>110<\/td><td>rw-<\/td><td>read, write<\/td><\/tr><tr><td>7<\/td><td>111<\/td><td>rwx<\/td><td>read, write, execute<br>(all the authority)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>For example.<\/p>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-default\">\n<p>Logged in users: read, write, execute (all)<\/p>\n\n\n\n<p>group: read, execute<\/p>\n\n\n\n<p>Ohter Users: execute<\/p>\n<\/div>\n\n\n\n<p>If you want to add this permission to the sample.txt file, do this.<\/p>\n\n\n\n<div class=\"pre-code-title\">Change the permissions of sample.txt<\/div><pre class=\"\" data-user=\"root\" data-output=\"\"><code class=\"language-bash\">chmod 751 sample.txt<\/code><\/pre>\n\n\n\n<p>The non-numeric symbols can also be used, but they are easier to use as they are grouped together and require only three characters.<\/p>\n\n\n\n<p>If you want to change the permissions of a directory, you can use the \"-R\" option to change the files and directories under it.<\/p>\n\n\n\n<div class=\"pre-code-title\">Change the \"sample\" directory and its subdirectories together<\/div><pre class=\"\" data-user=\"root\" data-output=\"\"><code class=\"language-bash\">chmod -R 751 sample<\/code><\/pre>\n\n\n\n<h2 class=\"is-style-h2df\" id=\"index-list-3\">How to read file and directory information in Linux<\/h2>\n\n\n\n<p>I used chmod to specify the permissions as a number 0-7. I only showed the resulting table, but I didn't explain the meaning of it.<\/p>\n\n\n\n<p>The meaning of the numbers is easier to understand if you look at how files and directories are displayed in Linux.<\/p>\n\n\n\n<p>Let's look at it first.<\/p>\n\n\n\n<p>\"ls\" command will show you the information about the files and directories.<\/p>\n\n\n\n<div class=\"pre-code-title\">Command to view file and directory information<\/div><pre class=\" command-line\" data-user=\"\" data-output=\"2\"><code class=\"language-bash\">ls -l\n-rw-rw-r-- 1 xxxxx yyyyy 1875611 Aug 16 23:57 zzzzzz<\/code><\/pre>\n\n\n\n<p>Here's the result. I'll explain the details one by one.<\/p>\n\n\n\n<h3 class=\"is-style-h3df\" id=\"index-list-4\">File Types<\/h3>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-format\">\n<p><span style=\"color:#cf2e2e\" class=\"tadv-color\"><strong>-<\/strong><\/span>rw-rw-r-- 1 xxxxx yyyyy 1875611 Aug 16 23:57 zzzzzz<\/p>\n<\/div>\n\n\n\n<p>The first character is the type of file.<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><td>-<\/td><td>file<\/td><\/tr><tr><td>d<\/td><td>directory<\/td><\/tr><tr><td>l<\/td><td>symbolic link<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"is-style-h3df\" id=\"index-list-5\">Permission<\/h3>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-format\">\n<p> -<strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">rw-rw-r--<\/span><\/strong> 1 xxxxx yyyyy 1875611 Aug 16 23:57 zzzzzz <\/p>\n<\/div>\n\n\n\n<p>Next, a nine-character string follows, uninterrupted by the file type.<\/p>\n\n\n\n<p>File access rights.<\/p>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-default\">\n<ul><li>Who did?<\/li><li>What can you do?<\/li><\/ul>\n<\/div>\n\n\n\n<p>will be displayed.<\/p>\n\n\n\n<h4 class=\"is-style-h4df\">Who owns the file?<\/h4>\n\n\n\n<p>\"Who?\" separates 9 characters by 3 characters.<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><td>owner<\/td><td>group<\/td><td>Users other than the owner<\/td><\/tr><tr><td>\u3007\u3007\u3007<\/td><td>\u00d7\u00d7\u00d7<\/td><td>\u25b3\u25b3\u25b3<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The \"owner\" is the user who created the file and the user belongs to some group.<\/p>\n\n\n\n<p>The last one is a user other than the file creator.<\/p>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-default\">\n<p>What can a non-ownership user do?<\/p>\n<\/div>\n\n\n\n<p>Set this up.<\/p>\n\n\n\n<h4 class=\"is-style-h4df\">What can the file do?<\/h4>\n\n\n\n<p>\"What can I do? are these three.<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><td>Read from file<\/td><td>Write to file<\/td><td>Run the file<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Specify three permissions, one character for each of the three users.<\/p>\n\n\n\n<p>There are two ways to specify permissions: alphabetic and numerical.<\/p>\n\n\n\n<p>The table summarizes.<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><th>permission<\/th><th>alphabet<\/th><th>numerics<\/th><\/tr><tr><td>Read<\/td><td>r<\/td><td>4<\/td><\/tr><tr><td>Write<\/td><td>w<\/td><td>2<\/td><\/tr><tr><td>Execute<\/td><td>x<\/td><td>1<\/td><\/tr><tr><td>None<\/td><td>-<\/td><td>0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h5 class=\"is-style-h5df\">Alphabetical designation<\/h5>\n\n\n\n<p>The alphabetic symbol is a single letter of the word.<\/p>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-default\">\n<ul><li><strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">r<\/span><\/strong>ead<\/li><li><strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">w<\/span><\/strong>rite<\/li><li>e<strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">x<\/span><\/strong>ecute<\/li><\/ul>\n<\/div>\n\n\n\n<h5 class=\"is-style-h5df\">Numeric designation<\/h5>\n\n\n\n<p>The number is expressed as a binary number with three digits.<\/p>\n\n\n\n<p>The order of the numbers looks like this<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><td>Read<\/td><td>Write<\/td><td>Execute<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Each one uses the value of a flag of 1. It's easy to remember this table.<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><td>100<\/td><td>Read<\/td><td>4<\/td><\/tr><tr><td>010<\/td><td>Write<\/td><td>2<\/td><\/tr><tr><td>001<\/td><td>Execute<\/td><td>1<\/td><\/tr><\/tbody><\/table><figcaption>memorized table<\/figcaption><\/figure>\n\n\n\n<h5 class=\"is-style-h5df\">Specify multiple permissions numerically<\/h5>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-default\">\n<p>It's readable and executable.<\/p>\n<\/div>\n\n\n\n<p>Thus, if you want to give multiple permissions, add them together.<\/p>\n\n\n\n<p>Then all permissions would look like this.<\/p>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-default\">\n<p>1 + 2 + 4 = 7<\/p>\n<\/div>\n\n\n\n<p>As we will see, the values we use are 0-7.<\/p>\n\n\n\n<h4 class=\"is-style-h4df\">A table of all permission patterns<\/h4>\n\n\n\n<p>All permission patterns are summarized in the table.<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><thead><tr><th>Value<\/th><th>Binary digits<\/th><th>Symbol<\/th><th>Permissions to allow<\/th><\/tr><\/thead><tbody><tr><td>0<\/td><td>000<\/td><td>---<\/td><td>No authority at all.<\/td><\/tr><tr><td>1<\/td><td>001<\/td><td>--x<\/td><td>Execute<\/td><\/tr><tr><td>2<\/td><td>010<\/td><td>-w-<\/td><td>Write<\/td><\/tr><tr><td>3<\/td><td>011<\/td><td>-wx<\/td><td>Write, Execute<\/td><\/tr><tr><td>4<\/td><td>100<\/td><td>r--<\/td><td>Read<\/td><\/tr><tr><td>5<\/td><td>101<\/td><td>r-x<\/td><td>Read, Execute<\/td><\/tr><tr><td>6<\/td><td>110<\/td><td>rw-<\/td><td>Read, Write<\/td><\/tr><tr><td>7<\/td><td>111<\/td><td>rwx<\/td><td>Read, Write, Execute<br>(All)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Again, these three character permissions are assigned to the owner, group and other users.<\/p>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-format\">\n<p> -<strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">rw-<\/span><span style=\"color:#00d084\" class=\"tadv-color\">rw-<\/span><span style=\"color:#0693e3\" class=\"tadv-color\">r--<\/span><\/strong> 1 xxxxx yyyyy 1875611 Aug 16 23:57 zzzzzz <\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-default\">\n<p>Red: owner<\/p>\n\n\n\n<p>Green: group<\/p>\n\n\n\n<p>Blue: Users other than the owner<\/p>\n<\/div>\n\n\n\n<p>Three color-coded permissions can be made.<\/p>\n\n\n\n<h4 class=\"is-style-h4df\">Permissions error<\/h4>\n\n\n\n<p>If you try to operate on a file or directory without permission, an error occurs.<\/p>\n\n\n\n<div class=\"pre-code-title\">Permission Error Messages<\/div><pre class=\" command-line\" data-user=\"\" data-output=\"1\"><code class=\"language-bash\">Permission denied<\/code><\/pre>\n\n\n\n<h3 class=\"is-style-h3df\" id=\"index-list-6\">Number of hard links<\/h3>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-format\">\n<p> -rw-rw-r-- <strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">1<\/span><\/strong> xxxxx yyyyy 1875611 Aug 16 23:57 zzzzzz <\/p>\n<\/div>\n\n\n\n<p>Next to the permissions is the number of hard links, separated by a single space.<\/p>\n\n\n\n<p>There's not much point in knowing the details here, so this is about as much as you can remember.<\/p>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-default\">\n<ul><li>file, the value is 1<\/li><li>directory, the approximate number of files and directories underneath<\/li><\/ul>\n<\/div>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-note\">\n<p>In Linux, there are two hard links directly under the directory that count.<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><td>.<\/td><td>current directory<\/td><\/tr><tr><td>..<\/td><td>The parent (one level up) directory<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>It's a number of hard links, so symbolic links do not count.<\/p>\n\n\n\n<p>In that sense, it won't be an exact number of files and directories.<\/p>\n<\/div>\n\n\n\n<h3 class=\"is-style-h3df\" id=\"index-list-7\">Names of owners and groups<\/h3>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-format\">\n<p> -rw-rw-r-- 1 <strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">xxxxx<\/span> <span style=\"color:#0693e3\" class=\"tadv-color\">yyyyy<\/span><\/strong> 1875611 Aug 16 23:57 zzzzzz <\/p>\n<\/div>\n\n\n\n<p>Next to the number of hard links, space out one and show two names.<\/p>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-default\">\n<p>file owner's name<\/p>\n\n\n\n<p>The name of the group to which the file owner belongs<\/p>\n<\/div>\n\n\n\n<p>Leave one space between the owner's name and the group's name.<\/p>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-point\">\n<p>The owner of the file is the creator of the file<\/p>\n<\/div>\n\n\n\n<h3 class=\"is-style-h3df\" id=\"index-list-8\">File Size<\/h3>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-format\">\n<p> -rw-rw-r-- 1 xxxxx yyyyy <strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">1875611<\/span><\/strong> Aug 16 23:57 zzzzzz <\/p>\n<\/div>\n\n\n\n<p>Next to the owner's name and group name is the file size, with one space left blank.<\/p>\n\n\n\n<p>The unit is bytes and 0 for a directory.<\/p>\n\n\n\n<h3 class=\"is-style-h3df\" id=\"index-list-9\">Update Date<\/h3>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-format\">\n<p> -rw-rw-r-- 1 xxxxx yyyyy 1875611 <strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">Aug 16 23:57<\/span><\/strong> zzzzzz <\/p>\n<\/div>\n\n\n\n<p>Next to the file size is the date and time of the file's last modification, with a single space after the file size.<\/p>\n\n\n\n<p>If it's a directory, it's the date and time the file was last modified when the directory configuration changed.<\/p>\n\n\n\n<p>If it is a new file, it is the date and time of its creation.<\/p>\n\n\n\n<h3 class=\"is-style-h3df\" id=\"index-list-10\">The name of the file or directory<\/h3>\n\n\n\n<div class=\"wp-block-origin-block-em-box em-group em-group-format\">\n<p> -rw-rw-r-- 1 xxxxx yyyyy 1875611 Aug 16 23:57 <strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">zzzzzz<\/span><\/strong><\/p>\n<\/div>\n\n\n\n<p>Lastly, the name of the file or directory, leaving one space blank.<\/p>\n\n\n\n<h2 class=\"is-style-h2df\" id=\"index-list-11\">Finally.<\/h2>\n\n\n\n<p>The 'chmod' command has other options than '-R', but you won't use them very often. The rest of the usage is simple, so it's easy to learn.<\/p>\n\n\n\n<p><a href=\"#index-list-2\" title=\"Just look at the first table I showed you\">Just look at the first table I showed you<\/a>, so you don't have to struggle to remember it.<\/p>\n\n<!-- WP QUADS Content Ad Plugin v. 2.0.65.1 -->\n<div class=\"quads-location quads-ad2\" id=\"quads-ad2\" style=\"float:none;margin:0px;\">\n<ul class=\"quads-location-ul\">\r\n<li class=\"quads-location-li li-1\">\r\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-4926008942376207\"\r\n     data-ad-slot=\"6550760310\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\r\n<\/li>\r\n<li class=\"quads-location-li li-2\">\r\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-4926008942376207\"\r\n     data-ad-slot=\"6550760310\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\r\n<\/li>\r\n<\/ul>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>The chmod command is used to change the permissions on files and directories. It also explains how to read file and directory information.<\/p>\n","protected":false},"author":1,"featured_media":12973,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"The Linux command 'chmod' is often used but often forgotten. It's for review. If you want to use it, feel free to use it.\n\n#Linux_command_chmod","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_options":[]},"categories":[9,46,48],"tags":[224,544,545,546],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/tadtadya.com\/en\/wp-content\/uploads\/sites\/2\/2018\/11\/1623193_s_wi.jpg?fit=640%2C480&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8Qw77-6J6","jetpack_likes_enabled":false,"_links":{"self":[{"href":"https:\/\/tadtadya.com\/en\/wp-json\/wp\/v2\/posts\/25860"}],"collection":[{"href":"https:\/\/tadtadya.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tadtadya.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tadtadya.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tadtadya.com\/en\/wp-json\/wp\/v2\/comments?post=25860"}],"version-history":[{"count":0,"href":"https:\/\/tadtadya.com\/en\/wp-json\/wp\/v2\/posts\/25860\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tadtadya.com\/en\/wp-json\/wp\/v2\/media\/12973"}],"wp:attachment":[{"href":"https:\/\/tadtadya.com\/en\/wp-json\/wp\/v2\/media?parent=25860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tadtadya.com\/en\/wp-json\/wp\/v2\/categories?post=25860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tadtadya.com\/en\/wp-json\/wp\/v2\/tags?post=25860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}