{"id":116,"date":"2009-01-24T19:05:37","date_gmt":"2009-01-24T11:05:37","guid":{"rendered":"http:\/\/www.sysadmindayph.com\/blog\/?p=116"},"modified":"2012-02-11T18:47:46","modified_gmt":"2012-02-11T10:47:46","slug":"pwd-most-used-unix-command","status":"publish","type":"post","link":"https:\/\/www.sysadmindayph.com\/blog\/pwd-most-used-unix-command\/","title":{"rendered":"pwd &#8211; Most Used UNIX Command"},"content":{"rendered":"<p><strong>pwd<\/strong> is probably the most widely used UNIX (or Unix-like) command! ls (el-es) could also be the most used but we will be talking <a title=\"pwd\" href=\"http:\/\/www.sysadmindayph.com\/blog\/pwd-most-used-unix-command\/\">about pwd<\/a> here, so let&#8217;s say that &#8216;pwd&#8217; is the most widely used shall we?<br \/>\n<script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"ca-pub-8839128323193448\";\n\/* sysadmin-bigsquare *\/\ngoogle_ad_slot = \"0154488356\";\ngoogle_ad_width = 336;\ngoogle_ad_height = 280;\n\/\/-->\n<\/script><br \/>\n<script type=\"text\/javascript\"\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/p>\n<p><strong>What is pwd?<\/strong><\/p>\n<p>pwd, when executed at the shell (prompt) will print out the current working directory in the standard output of the system, which is the monitor.<\/p>\n<p>pwd could be and abbreviation for &#8216;print working directory&#8217; or &#8216;present working directory&#8217; or make up your own definition.. there&#8217;s no rule.<br \/>\n<script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"ca-pub-8839128323193448\";\n\/* sysadmin-bigsquare *\/\ngoogle_ad_slot = \"0154488356\";\ngoogle_ad_width = 336;\ngoogle_ad_height = 280;\n\/\/-->\n<\/script><br \/>\n<script type=\"text\/javascript\"\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><br \/>\nWIkipedia says:<\/p>\n<p>In Unix-like and some other operating systems the pwd command (print working directory) is used to output the path of the current working directory.<\/p>\n<p>The command is a shell builtin in certain Unix shells such as sh, and bash. It can be implemented easily with the POSIX C functions getcwd() and\/or getwd().<\/p>\n<p>The equivalent on DOS (COMMAND.COM) and Microsoft Windows (cmd.exe) is the &#8220;cd&#8221; command with no arguments. Windows PowerShell provides the equivalent &#8220;Get-Location&#8221; cmdlet with the standard aliases &#8220;gl&#8221; and &#8220;pwd&#8221;. The OpenVMS equivalent is &#8220;show default&#8221;.<\/p>\n<p>Example:<\/p>\n<p>$ pwd<br \/>\n\/home\/foobar<\/p>\n","protected":false},"excerpt":{"rendered":"<p>pwd is probably the most widely used UNIX (or Unix-like) command! ls (el-es) could also be the most used but we will be talking about pwd here, so let&#8217;s say that &#8216;pwd&#8217; is the most &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[130,132,131],"class_list":["post-116","post","type-post","status-publish","format-standard","hentry","category-commands","tag-command","tag-pwd","tag-unix-command"],"_links":{"self":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/comments?post=116"}],"version-history":[{"count":1,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/116\/revisions"}],"predecessor-version":[{"id":307,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/116\/revisions\/307"}],"wp:attachment":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/media?parent=116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/categories?post=116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/tags?post=116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}