{"id":16590,"date":"2012-07-30T12:14:36","date_gmt":"2012-07-30T10:14:36","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=16590"},"modified":"2012-07-30T12:14:45","modified_gmt":"2012-07-30T10:14:45","slug":"ive-been-using-a-combination-of-ps-and-grep-for-y","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2012\/07\/30\/ive-been-using-a-combination-of-ps-and-grep-for-y\/","title":{"rendered":"I&#8217;ve been using a combination of ps and grep for y&#8230;"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>I&#8217;ve been using a combination of <em>ps<\/em> and <em>grep<\/em> for years now. \u00a0Apparently, there is an easier way &#8211; <em>pgrep<\/em> and <em>pkill<\/em> utilities, which are a part of procps package on Fedora and CentOS distributions.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>I&#8217;ve been using a combination of ps and grep for years now. \u00a0Apparently, there is an easier way &#8211; pgrep and pkill utilities, which are a part of procps package on Fedora and CentOS distributions.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"status","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_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},"_links_to":"","_links_to_target":""},"categories":[1,6,133,62],"tags":[1960,2351],"keyring_services":[],"class_list":["post-16590","post","type-post","status-publish","format-status","hentry","category-general","category-linux","category-sysadmin","category-technology","tag-command-line","tag-fedora-linux","post_format-post-format-status"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":42578,"url":"https:\/\/mamchenkov.net\/wordpress\/2019\/05\/02\/fedora-30\/","url_meta":{"origin":16590,"position":0},"title":"Fedora 30","author":"Leonid Mamchenkov","date":"May 2, 2019","format":false,"excerpt":"Fedora 30 has been released a few days ago. In the long list of changes, the most interesting to me are: Upgrade to Bash 5Upgrade to PHP 7.3 (more specifically 7.3.4)Deprecation of \/etc\/sysconfig\/nfs in favor of \/etc\/nfs.conf I've already upgraded my laptop to this version and everything seems to work\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/05\/fedora30.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/05\/fedora30.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/05\/fedora30.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2019\/05\/fedora30.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":9803,"url":"https:\/\/mamchenkov.net\/wordpress\/2006\/01\/06\/daily-del-icio-us-bookmarks\/","url_meta":{"origin":16590,"position":1},"title":"Daily del.icio.us bookmarks","author":"Leonid Mamchenkov","date":"January 6, 2006","format":false,"excerpt":"Shared bookmarks for del.icio.us user tvset on 2006-01-05 GREP tutorial Tagged as: bash gnu grep howto linux reference software sysadmin tutorial unix","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":28521,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/04\/25\/gron-make-json-greppable\/","url_meta":{"origin":16590,"position":2},"title":"gron &#8211; Make JSON greppable!","author":"Leonid Mamchenkov","date":"April 25, 2018","format":false,"excerpt":"gron is a grep-like tool that specializes in JSON format.\u00a0 Unlike grep, however, it works both way - in and out.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10039,"url":"https:\/\/mamchenkov.net\/wordpress\/2006\/04\/07\/gnu-grep-can-be-colorful\/","url_meta":{"origin":16590,"position":3},"title":"GNU grep can be colorful","author":"Leonid Mamchenkov","date":"April 7, 2006","format":false,"excerpt":"Yet another of those tiny things that I wish I discovered a billion years ago - GNU grep supports color.\u00c2\u00a0 Yup, that's right.\u00c2\u00a0 You can actually have your matches nicely highlighted in the results.\u00c2\u00a0 All you have to do to use this beauty is run grep --color instead of just\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16781,"url":"https:\/\/mamchenkov.net\/wordpress\/2012\/10\/02\/bash-directory-bookmarks\/","url_meta":{"origin":16590,"position":4},"title":"Bash directory bookmarks","author":"Leonid Mamchenkov","date":"October 2, 2012","format":false,"excerpt":"While reading through the comments to this Habrahabr article (in Russian), I came across an excellent tip for the directory bookmarks in bash shell. \u00a0Here's how to set it up. Firstly, add the following lines to your .bashrc or .bash_profile file: Secondly, if you are already using ~\/.bookmarks file for\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12823,"url":"https:\/\/mamchenkov.net\/wordpress\/2010\/07\/27\/monitoring-tree-of-linux-processes\/","url_meta":{"origin":16590,"position":5},"title":"Monitoring tree of Linux processes","author":"Leonid Mamchenkov","date":"July 27, 2010","format":false,"excerpt":"Once in a while there is a need to see the tree of processes on a Linux system. \u00a0When such a need arises, I usually run \"ps auxw --forest\", which results in something like this (partial output, top only): Today, via this blog post, I've learned that there is another\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2010\/07\/ps_auxw_forest-500x253.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/16590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=16590"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/16590\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=16590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=16590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=16590"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=16590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}