{"id":146,"date":"2024-09-29T07:37:33","date_gmt":"2024-09-29T06:37:33","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=146"},"modified":"2024-09-29T07:37:33","modified_gmt":"2024-09-29T06:37:33","slug":"mwnci-cd-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-cd-function\/","title":{"rendered":"Mwnci cd() Function"},"content":{"rendered":"<h2><span id=\"Syntax\" class=\"mw-headline\">Syntax<\/span><\/h2>\n<p>cd(<i><b>directory<\/b><\/i>)<\/p>\n<h2><span id=\"Description\" class=\"mw-headline\">Description<\/span><\/h2>\n<p>The <i>cd()<\/i> function is used to change the current working directory to the named directory<\/p>\n<h2><span id=\"Example\" class=\"mw-headline\">Example<\/span><\/h2>\n<pre>\/\/ Already in \/tmp\r\nprintln(getwd())\r\ncd(\"\/etc\")\r\nprintln(getwd())\r\n\r\n\r\n\/tmp\r\n\/etc\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax cd(directory) Description The cd() function is used to change the current working directory to the named directory Example \/\/ Already in \/tmp println(getwd()) cd(&#8220;\/etc&#8221;) println(getwd()) \/tmp \/etc<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-146","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=146"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/146\/revisions"}],"predecessor-version":[{"id":147,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/146\/revisions\/147"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}