
{"id":7851,"date":"2012-10-30T20:04:13","date_gmt":"2012-10-30T20:04:13","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=7851"},"modified":"2012-10-30T20:04:13","modified_gmt":"2012-10-30T20:04:13","slug":"sudo-and-a-bash-builtin-command","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/10\/30\/sudo-and-a-bash-builtin-command\/","title":{"rendered":"sudo and a bash builtin command"},"content":{"rendered":"<h4><u>commandline session<\/u><\/h4>\n<pre>\n$ 4.2.36 37 537---&gt; cd \/var\/log\/gdm3\/\nbash: cd: \/var\/log\/gdm3\/: Permission denied\n$ 4.2.36 38 538---&gt; cd \/var\/log\/gdm3\/\nbash: cd: \/var\/log\/gdm3\/: Permission denied\n$ 4.2.36 39 539---&gt; sudo sh -c 'cd \/var\/log\/gdm3\/'\n$ 4.2.36 40 540---&gt; sudo cd \/var\/log\/gdm3\nsudo: cd: command not found\n$ 4.2.36 41 541---&gt; sudo cd \/var\/log\/gdm3\nsudo: cd: command not found\n$ 4.2.36 42 542---&gt; sudo cd \/var\/log\/gdm3\nsudo: cd: command not found\n$ 4.2.36 43 543---&gt; sudo sh -c 'cd \/var\/log\/gdm3\/'\n$ 4.2.36 44 544---&gt; pwd\n\/home\/jeffrin\n$ 4.2.36 45 545---&gt; sudo sh -c 'cd \/var\/log\/gdm3\/'\n$ 4.2.36 46 546---&gt; pwd\n\/home\/jeffrin\n$ 4.2.36 47 547---&gt; sudo sh -c 'cd \/var\/log\/gdm3\/;pwd'\n\/var\/log\/gdm3\n$ 4.2.36 48 548---&gt; pwd\n\/home\/jeffrin\n$ 4.2.36 49 549---&gt; sudo sh -c 'cd \/var\/log\/gdm3\/;du -h'\n17M\t.\n$ 4.2.36 50 550---&gt;\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $ 4.2.36 37 537&#8212;&gt; cd \/var\/log\/gdm3\/ bash: cd: \/var\/log\/gdm3\/: Permission denied $ 4.2.36 38 538&#8212;&gt; cd \/var\/log\/gdm3\/ bash: cd: \/var\/log\/gdm3\/: Permission denied $ 4.2.36 39 539&#8212;&gt; sudo sh -c &#8216;cd \/var\/log\/gdm3\/&#8217; $ 4.2.36 40 540&#8212;&gt; sudo cd \/var\/log\/gdm3 sudo: cd: command not found $ 4.2.36 41 541&#8212;&gt; sudo cd \/var\/log\/gdm3 sudo: cd: command &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/10\/30\/sudo-and-a-bash-builtin-command\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;sudo and a bash builtin command&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7851"}],"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=7851"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7851\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=7851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=7851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=7851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}