{"id":2255,"date":"2017-12-08T05:54:10","date_gmt":"2017-12-08T05:54:10","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2255"},"modified":"2020-01-09T09:28:44","modified_gmt":"2020-01-09T09:28:44","slug":"write-script-to-see-current-date-time-username-and-current-directory-2","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/write-script-to-see-current-date-time-username-and-current-directory-2\/","title":{"rendered":"Write Script to see current date, time, username, and current directory"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: Write Script to see current date, time, username, and current directory<\/strong><\/p>\n<p>Write Script to see current date, time, username, and current directory<\/p>\n<p><code>#!\/bin\/bash<br \/>\n#<br \/>\n# Linux Shell Scripting Tutorial 1.05r3, Summer-2002<br \/>\n#<br \/>\n# Written by Vivek G. Gite <vivek@nixcraft.com><br \/>\n#<br \/>\n# Latest version can be found at http:\/\/www.nixcraft.com\/<br \/>\n#<br \/>\n# Q5<br \/>\n#<br \/>\necho \"Hello, $LOGNAME\"<br \/>\necho \"Current date is `date`\"<br \/>\necho \"User is `who i am`\"<br \/>\necho \"Current direcotry `pwd`\"<\/p>\n<p>#<br \/>\n# .\/ch.sh: vivek-tech.com to nixcraft.com referance converted using this tool<br \/>\n# See the tool at http:\/\/www.nixcraft.com\/uniqlinuxfeatures\/tools\/<br \/>\n#<\/code><\/p>\n<p>Regards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: Write Script to see current date, time, username, and current directory Write Script to see current date, time, username, and current directory #!\/bin\/bash # # Linux&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[454],"tags":[278],"class_list":["post-2255","post","type-post","status-publish","format-standard","hentry","category-shell-script","tag-script"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2255"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2255\/revisions"}],"predecessor-version":[{"id":2256,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2255\/revisions\/2256"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}