{"id":1646,"date":"2008-03-03T17:10:48","date_gmt":"2008-03-03T17:10:48","guid":{"rendered":"http:\/\/scienceblogs.com\/gregladen\/2008\/03\/03\/linux-magic\/"},"modified":"2008-03-03T17:10:48","modified_gmt":"2008-03-03T17:10:48","slug":"linux-magic","status":"publish","type":"post","link":"https:\/\/gregladen.com\/blog\/2008\/03\/03\/linux-magic\/","title":{"rendered":"Linux Magic"},"content":{"rendered":"<p>Let&#8217;s say you want to make a directory tree in Linux a few directories deep.  You could do this:<code>greg@greg-laptop:~$ mkdir tstgreg@greg-laptop:~$ cd tstgreg@greg-laptop:~\/tst$ mkdir tstdeepergreg@greg-laptop:~\/tst$ cd tstdeepergreg@greg-laptop:~\/tst\/tstdeeper$ mkdir evendeepergreg@greg-laptop:~\/tst\/tstdeeper$ cd evendeepergreg@greg-laptop:~\/tst\/tstdeeper\/evendeeper$<\/code>Or, you could be smart and do this:<!--more--><code>greg@greg-laptop:~$ mkdir -p tst\/tstdeeper\/evendeeper<\/code>Notice the -p option.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s say you want to make a directory tree in Linux a few directories deep. You could do this:greg@greg-laptop:~$ mkdir tstgreg@greg-laptop:~$ cd tstgreg@greg-laptop:~\/tst$ mkdir tstdeepergreg@greg-laptop:~\/tst$ cd tstdeepergreg@greg-laptop:~\/tst\/tstdeeper$ mkdir evendeepergreg@greg-laptop:~\/tst\/tstdeeper$ cd evendeepergreg@greg-laptop:~\/tst\/tstdeeper\/evendeeper$Or, you could be smart and do this:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"1","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[164,67],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p5fhV1-qy","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/1646"}],"collection":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/comments?post=1646"}],"version-history":[{"count":0,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/posts\/1646\/revisions"}],"wp:attachment":[{"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/media?parent=1646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/categories?post=1646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregladen.com\/blog\/wp-json\/wp\/v2\/tags?post=1646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}