{"id":1871,"date":"2019-02-01T20:07:31","date_gmt":"2019-02-01T20:07:31","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/linux-command-reference\/statistic\/"},"modified":"2019-02-01T20:07:31","modified_gmt":"2019-02-01T20:07:31","slug":"statistic","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/linux-command-reference\/statistic\/","title":{"rendered":"Statistic"},"content":{"rendered":"<table>\n<tr>\n<th>Command<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td> mpstat 1                      <\/td>\n<td> Displays processors related statistics<\/td>\n<\/tr>\n<tr>\n<td> vmstat 2                      <\/td>\n<td> Displays virtual memory statistics<\/td>\n<\/tr>\n<tr>\n<td> iostat 2                      <\/td>\n<td> Displays I\/O statistics<\/td>\n<\/tr>\n<tr>\n<td> tail -n 500 \/var\/log\/messages <\/td>\n<td> Displays the last 500 kernel\/syslog messages<\/td>\n<\/tr>\n<tr>\n<td> tcpdump -i eth1               <\/td>\n<td> Captures all packets flow on interface eth1. With -w switch you can specify a file where you can direct the output to<\/td>\n<\/tr>\n<tr>\n<td> lsof                          <\/td>\n<td> Lists all open files belonging to all active processes<\/td>\n<\/tr>\n<tr>\n<td> free -m                       <\/td>\n<td> Shows RAM memory details<\/td>\n<\/tr>\n<tr>\n<td> watch df -h                   <\/td>\n<td> Watches changeable disk usage continuously<\/td>\n<\/tr>\n<tr>\n<td>   tcpdump -i eth0 &#8216;port 80&#8217;     <\/td>\n<td> Monitors all traffic on port 80 on interface eth0<\/td>\n<\/tr>\n<tr>\n<td>   lsof -u testuser              <\/td>\n<td> Lists files opened by a specific user<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Command Description mpstat 1 Displays processors related statistics vmstat 2 Displays virtual memory statistics iostat 2 Displays I\/O statistics tail -n 500 \/var\/log\/messages Displays the last 500 kernel\/syslog messages tcpdump -i eth1 Captures all packets flow on interface eth1. With -w switch you can specify a file where you can direct the output to lsof [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1712,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1871","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=1871"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1871\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1712"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=1871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}