{"id":1483,"date":"2014-12-26T01:05:32","date_gmt":"2014-12-26T01:05:32","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=1483"},"modified":"2014-12-26T01:05:32","modified_gmt":"2014-12-26T01:05:32","slug":"kill-processes-linux","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/12\/26\/kill-processes-linux\/","title":{"rendered":"Kill processes in Linux"},"content":{"rendered":"<p>Here are several ways to kill all the processes in linux.<br \/>\nWhere username is my userid. <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# pkill -u username\n\n<\/pre>\n<p>or<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# ps -o pid -u pu | xargs kill -1\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# pgrep -u username | sudo xargs kill -9 \n\n<\/pre>\n<p>Show processes run for a username and sshd<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# pgrep -u username sshd\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here are several ways to kill all the processes in linux. Where username is my userid. # pkill -u username or # ps -o pid -u pu | xargs kill -1 # pgrep -u username | sudo xargs kill -9 Show processes run for a username and sshd # pgrep -u username sshd<\/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":[139],"class_list":["post-1483","post","type-post","status-publish","format-standard","hentry","category-administration","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1483","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=1483"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1483\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=1483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=1483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=1483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}