{"id":713,"date":"2011-12-13T19:14:00","date_gmt":"2011-12-13T19:14:00","guid":{"rendered":"https:\/\/www.geekmungus.co.uk\/?p=713"},"modified":"2022-11-05T10:53:42","modified_gmt":"2022-11-05T10:53:42","slug":"using-tail-to-watch-a-log-file","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=713","title":{"rendered":"Using Tail to watch a log file"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you ever need to watch a log file to see if something goes into it, here is a cheeky command to do that.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>-f<\/strong> says to watch for updates, the <strong>-n 500<\/strong> shows how many lines to bring back.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tail -f -n 500 &lt;Filename><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you ever need to watch a log file to see if something goes into it, here is a cheeky command to do that. The -f says to watch for updates, the -n 500 shows how many lines to bring back.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-713","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=713"}],"version-history":[{"count":1,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/713\/revisions"}],"predecessor-version":[{"id":1516,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/713\/revisions\/1516"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}