{"id":211,"date":"2020-08-13T10:51:28","date_gmt":"2020-08-13T06:51:28","guid":{"rendered":"http:\/\/kidds.co.za\/?p=211"},"modified":"2020-08-13T10:55:17","modified_gmt":"2020-08-13T06:55:17","slug":"watch-piped-to-grep","status":"publish","type":"post","link":"https:\/\/kidds.co.za\/index.php\/2020\/08\/13\/watch-piped-to-grep\/","title":{"rendered":"watch piped to grep"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>watch command is a great way to quickly monitor the status of something.\nImagine a file being transferred to your server and you want to know when its done. .... watch -n 1 ls -l &lt;file>\n\nThis is a quick way to view your CPUs current speed.\nall command go inside \"\" and then you can pipe away.\n\nAnyway below are come cool quickies. Alias them for quick acces up to you.<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Quick view CPU speeds\nwatch -n 1 \"cat \/proc\/cpuinfo | grep -e 'cpu MHz'\"\ncpu MHz\t\t: 800.109\ncpu MHz\t\t: 800.149\ncpu MHz\t\t: 800.018\n.....\nQuick view system memory state\nwatch -n 1 \"cat \/proc\/meminfo | grep Mem\"\nMemTotal:       16247104 kB\nMemFree:         8763996 kB\nMemAvailable:   11186060 kB<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,5,7,10,2],"tags":[],"class_list":["post-211","post","type-post","status-publish","format-standard","hentry","category-general","category-general-commands","category-general-server-stuff","category-general-system-stuff","category-linux"],"_links":{"self":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts\/211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/comments?post=211"}],"version-history":[{"count":2,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts\/211\/revisions"}],"predecessor-version":[{"id":213,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/posts\/211\/revisions\/213"}],"wp:attachment":[{"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/media?parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/categories?post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kidds.co.za\/index.php\/wp-json\/wp\/v2\/tags?post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}