{"id":62,"date":"2009-11-16T18:08:14","date_gmt":"2009-11-16T17:08:14","guid":{"rendered":"http:\/\/slack.codemaniacs.com\/blog\/?p=62"},"modified":"2009-11-18T17:49:56","modified_gmt":"2009-11-18T16:49:56","slug":"shell-tip-getting-a-canonical-absolute-path-from-a-relative-path","status":"publish","type":"post","link":"https:\/\/slack.codemaniacs.com\/blog\/2009\/11\/16\/shell-tip-getting-a-canonical-absolute-path-from-a-relative-path\/","title":{"rendered":"Shell tip: getting a canonical absolute path from a relative path"},"content":{"rendered":"<pre>\r\n$ readlink -f relative\/path\r\n<\/pre>\n<p>Gives a full path equivalent to the relative path, and follows every symlink in every component of the name in order to canonicalize it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>$ readlink -f relative\/path Gives a full path equivalent to the relative path, and follows every symlink in every component of the name in order to canonicalize it.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/posts\/62"}],"collection":[{"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/comments?post=62"}],"version-history":[{"count":3,"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":65,"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/posts\/62\/revisions\/65"}],"wp:attachment":[{"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/media?parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/categories?post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/slack.codemaniacs.com\/blog\/wp-json\/wp\/v2\/tags?post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}