{"id":27,"date":"2012-03-07T14:53:02","date_gmt":"2012-03-07T14:53:02","guid":{"rendered":"http:\/\/scunster.co.uk\/?p=27"},"modified":"2012-12-01T15:28:31","modified_gmt":"2012-12-01T15:28:31","slug":"useful-bash-commands","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=27","title":{"rendered":"Useful Bash Commands"},"content":{"rendered":"<p>A list of commonly used bash commands<!--more-->pwdx then PID for which process \/ directory that PID was run from<br \/>\nps ax &#8211; list all process<br \/>\nscreen &#8211; Create new screen<br \/>\nscreen &#8211; ls to list screens<br \/>\nscreen -S ASECO .\/start.sh (Starts .\/start.sh in screen window named ASECO)<br \/>\nWhen in screen CTRL + A then D to detach and return to bash<br \/>\nVI filename to open file for editing<br \/>\nwithin vi &#8211; I to insert<br \/>\n:q :w to quit \/ write<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A list of commonly used bash commands<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[97,99,101,79,98,96,100],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-linux","tag-bash","tag-commands","tag-console","tag-linux-2","tag-prompt","tag-shell","tag-terminal"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=27"}],"version-history":[{"count":5,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":488,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/27\/revisions\/488"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}