
{"id":15722,"date":"2014-04-17T18:46:35","date_gmt":"2014-04-17T18:46:35","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=15722"},"modified":"2014-04-17T18:46:35","modified_gmt":"2014-04-17T18:46:35","slug":"chattr-practice-session-i","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2014\/04\/17\/chattr-practice-session-i\/","title":{"rendered":"chattr practice session . I"},"content":{"rendered":"<pre style=\"font-family:'Glegoo', serif;\">\nThe following shows a command line session with chattr \ncommand which helps in changing attributes of files.\n<\/pre>\n<p><\/p>\n<pre>\n$lsattr functions.txt\n-------------e-- functions.txt\n$chattr -e functions.txt\nchattr: Clearing extent flag not supported on functions.txt\n$lsattr functions.txt\n-------------e-- functions.txt\n$chattr +c functions.txt\n$lsattr functions.txt\n--------c----e-- functions.txt\n$lsattr functions.txt\n--------c----e-- functions.txt\n$chattr +a functions.txt\nchattr: Operation not permitted while setting flags on functions.txt\n$chattr +C functions.txt\n$lsattr functions.txt\n--------c----e-- functions.txt\n$\n\n<\/pre>\n<p><\/p>\n<pre style=\"font-family:'Glegoo', serif;\">\nThe 'e' attribute indicates that the file is using\nextents for mapping the blocks on  disk.\n\nA file with the `c' attribute set is automatically \ncompressed on the disk by the kernel.\n\nA file with the `a' attribute set can only be open \nin append mode for writing.\n\nA  file  with  the 'C' attribute set will not be subject\nto copy-on-write updates.\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The following shows a command line session with chattr command which helps in changing attributes of files. $lsattr functions.txt &#8212;&#8212;&#8212;&#8212;-e&#8211; functions.txt $chattr -e functions.txt chattr: Clearing extent flag not supported on functions.txt $lsattr functions.txt &#8212;&#8212;&#8212;&#8212;-e&#8211; functions.txt $chattr +c functions.txt $lsattr functions.txt &#8212;&#8212;&#8211;c&#8212;-e&#8211; functions.txt $lsattr functions.txt &#8212;&#8212;&#8211;c&#8212;-e&#8211; functions.txt $chattr +a functions.txt chattr: Operation not permitted while &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2014\/04\/17\/chattr-practice-session-i\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;chattr practice session . I&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83,87],"tags":[435,527],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15722"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=15722"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/15722\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=15722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=15722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=15722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}