{"id":422,"date":"2023-09-15T07:28:41","date_gmt":"2023-09-15T07:28:41","guid":{"rendered":"https:\/\/jan.schnasse.org\/blog\/?p=422"},"modified":"2026-09-28T11:37:29","modified_gmt":"2026-09-28T09:37:29","slug":"unix-tools-introduced-today-readonly","status":"publish","type":"post","link":"https:\/\/jan.schnasse.org\/blog\/2023\/09\/15\/unix-tools-introduced-today-readonly\/","title":{"rendered":"Unix tools introduced. Today: readonly"},"content":{"rendered":"<p>In bash you can set a variable to &#8218;readonly&#8216;. This can be very useful to prevent accidental overwrites.<\/p>\n<pre class=\"lang-sh prettyprint prettyprinted\"><code><span class=\"pln\">readonly INSTALLDIR<\/span><span class=\"pun\">=<\/span><span class=\"str\">\"\/opt\/goodSoftware\"<\/span><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In bash you can set a variable to &#8218;readonly&#8216;. This can be very useful to prevent accidental overwrites. readonly INSTALLDIR=&#8220;\/opt\/goodSoftware&#8220;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,6,17],"tags":[],"class_list":["post-422","post","type-post","status-publish","format-standard","hentry","category-admin","category-development","category-unixtools"],"_links":{"self":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/comments?post=422"}],"version-history":[{"count":1,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/422\/revisions"}],"predecessor-version":[{"id":3770,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/posts\/422\/revisions\/3770"}],"wp:attachment":[{"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/media?parent=422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/categories?post=422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jan.schnasse.org\/blog\/wp-json\/wp\/v2\/tags?post=422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}