{"id":2828,"date":"2015-12-10T16:41:37","date_gmt":"2015-12-10T16:41:37","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=2828"},"modified":"2015-12-10T16:41:37","modified_gmt":"2015-12-10T16:41:37","slug":"display-timestamp-using-histtimeformat-for-history-command","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2015\/12\/10\/display-timestamp-using-histtimeformat-for-history-command\/","title":{"rendered":"Display timestamp using HISTTIMEFORMAT for History Command"},"content":{"rendered":"<p>Usually, when you run the history command, you get the following:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">995  ls -la\n  996  cd themes\/\n  997  cd heavenly\/\n  998  ls\n  999  ls -la\n 1000  exit\n\n<\/pre>\n<p>Run the following to get a timestamp<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">995  2015-12-10 08:31:35 ls -la\n  996  2015-12-10 08:31:35 cd themes\/\n  997  2015-12-10 08:31:35 cd heavenly\/\n  998  2015-12-10 08:31:35 ls\n  999  2015-12-10 08:31:35 ls -la\n 1000  2015-12-10 08:31:35 exit\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Usually, when you run the history command, you get the following: 995 ls -la 996 cd themes\/ 997 cd heavenly\/ 998 ls 999 ls -la 1000 exit Run the following to get a timestamp 995 2015-12-10 08:31:35 ls -la 996 2015-12-10 08:31:35 cd themes\/ 997 2015-12-10 08:31:35 cd heavenly\/ 998 2015-12-10 08:31:35 ls 999 2015-12-10 &#8230; <a title=\"Display timestamp using HISTTIMEFORMAT for History Command\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2015\/12\/10\/display-timestamp-using-histtimeformat-for-history-command\/\" aria-label=\"Read more about Display timestamp using HISTTIMEFORMAT for History Command\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2828","post","type-post","status-publish","format-standard","hentry","category-administration"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=2828"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/2828\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=2828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=2828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=2828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}