{"id":6953,"date":"2020-04-14T23:51:24","date_gmt":"2020-04-14T21:51:24","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=6953"},"modified":"2020-04-15T12:24:54","modified_gmt":"2020-04-15T10:24:54","slug":"linux-get-the-start-time-of-a-process","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/linux-get-the-start-time-of-a-process\/","title":{"rendered":"Linux: Get the start time of a process"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_6953 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_6953')){$('.twoclick_social_bookmarks_post_6953').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Linux%3A%20Get%20the%20start%20time%20of%20a%20process\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Ato%20get%20the%20start%20time%20of%20a%20linux%20process%20in%20an%20human%20readable%20format%20use%20the%20user-defined%20format%20of%20ps%20with%20the%20lstart%20option.%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/linux-get-the-start-time-of-a-process\\\/\",\"post_id\":6953,\"post_title_referrer_track\":\"Linux%3A+Get+the+start+time+of+a+process\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>to get the start time of a linux process in an human readable format use the user-defined format of <strong>ps <\/strong>with the lstart option.<br \/>\n<!--more--><\/p>\n<p>For examble: This shows the command line, the pid and the process start time of the process id 921.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmichael@debdev ~ # ps -eo pid,lstart,cmd -q 921\r\n  PID                  STARTED CMD\r\n  921 Fri Jan 23 09:19:01 2020 \/usr\/bin\/java\r\n<\/pre>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, to get the start time of a linux process in an human readable format use the user-defined format of ps with the lstart option.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[224,725,571,1426],"class_list":["post-6953","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux-2","tag-process","tag-show","tag-start-time"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/6953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=6953"}],"version-history":[{"count":2,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/6953\/revisions"}],"predecessor-version":[{"id":6955,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/6953\/revisions\/6955"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=6953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=6953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=6953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}