{"id":11825,"date":"2016-12-15T13:05:36","date_gmt":"2016-12-15T18:05:36","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=11825"},"modified":"2016-12-20T22:42:44","modified_gmt":"2016-12-21T03:42:44","slug":"kinux-top-command","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=11825","title":{"rendered":"Linux Top Command"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Command_Options\">Command Options<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#References\">References<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"Command_Options\"><h2>Command Options<\/h2><\/span>\n<p>* Start default top command<br \/>\n<em>top<\/em><\/p>\n<p>* Display single user processes<br \/>\n<em>top -u jimmy<\/em><\/p>\n<p>* Show full path for commands<br \/>\n<em>top -c<\/em><\/p>\n<p>* Start default top command but exit after 10 refreshes<br \/>\n<em>top -n 10<\/em><\/p>\n<p>* Save top command result to a file<br \/>\n<em>top -b -n 1 > top.txt<\/em><\/p>\n<p>* Show help<br \/>\nPress <strong>h <\/strong>within running top command<\/p>\n<p>* Sort by fields<br \/>\nUse uppercase <strong>O <\/strong>within running top command<\/p>\n<p>* Sort by CPU<br \/>\nPress uppercase <strong>P <\/strong>within running top command<\/p>\n<p>* Renice, i.e. change priority for, a process<br \/>\nPress <strong>r <\/strong>within running top command<\/p>\n<p>* Set screen refresh interval<br \/>\nPress <strong>d <\/strong>within running top command<\/p>\n<p>* Kill running process<br \/>\nUse <strong>k <\/strong>within running top command<\/p>\n<p>* Save current top configuration<br \/>\nPress upper case <strong>W <\/strong>within running top command<br \/>\nResults are saved in <em>~\/.toprc<\/em> file<\/p>\n<span id=\"References\"><h2>References<\/h2><\/span>\n<p>* <a href=\"http:\/\/www.tecmint.com\/12-top-command-examples-in-linux\/\">12 TOP Command Examples in Linux<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Command Options * Start default top command top * Display single user processes top -u jimmy * Show full path for commands top -c * Start default top command but exit after 10 refreshes top -n 10 * Save top &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=11825\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[61],"tags":[160,742],"class_list":["post-11825","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux-2","tag-top"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-34J","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/11825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11825"}],"version-history":[{"count":4,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/11825\/revisions"}],"predecessor-version":[{"id":11851,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/11825\/revisions\/11851"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}