{"id":363,"date":"2019-10-21T19:58:25","date_gmt":"2019-10-21T17:58:25","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=363"},"modified":"2019-10-21T19:58:25","modified_gmt":"2019-10-21T17:58:25","slug":"tail","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=363","title":{"rendered":"TAIL"},"content":{"rendered":"<p>TAIL(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TAIL(1)<\/p>\n<p>NAME<\/p>\n<p>tail &#8211; output the last part of files<\/p>\n<p>SYNOPSIS<\/p>\n<p>tail [OPTION]&#8230; [FILE]&#8230;<\/p>\n<p>DESCRIPTION<\/p>\n<p>Print the last 10 lines of each FILE to standard output.\u00a0 With more<br \/>\nthan one FILE, precede each with a header giving the file name.\u00a0 With<br \/>\nno FILE, or when FILE is -, read standard input.<\/p>\n<p>Mandatory arguments to long options are mandatory for short options<br \/>\ntoo.<\/p>\n<p>-c, &#8211;bytes=K<br \/>\noutput the last K bytes; or use -c +K to output bytes starting<br \/>\nwith the Kth of each file<\/p>\n<p>-f, &#8211;follow[={name|descriptor}]<br \/>\noutput appended data as the file grows;<\/p>\n<p>an absent option argument means &#8216;descriptor&#8217;<\/p>\n<p>-F\u00a0\u00a0\u00a0\u00a0 same as &#8211;follow=name &#8211;retry<\/p>\n<p>-n, &#8211;lines=K<br \/>\noutput the last K lines, instead of the last 10; or use -n +K<br \/>\nto output starting with the Kth<\/p>\n<p>&#8211;max-unchanged-stats=N<br \/>\nwith &#8211;follow=name, reopen a FILE which has not<\/p>\n<p>changed size after N (default 5) iterations to see if it has<br \/>\nbeen unlinked or renamed (this is the usual case of rotated<br \/>\nlog files); with inotify, this option is rarely useful<\/p>\n<p>&#8211;pid=PID<br \/>\nwith -f, terminate after process ID, PID dies<\/p>\n<p>-q, &#8211;quiet, &#8211;silent<br \/>\nnever output headers giving file names<\/p>\n<p>&#8211;retry<br \/>\nkeep trying to open a file if it is inaccessible<\/p>\n<p>-s, &#8211;sleep-interval=N<br \/>\nwith -f, sleep for approximately N seconds (default 1.0)<br \/>\nbetween iterations; with inotify and &#8211;pid=P, check process P<br \/>\nat least once every N seconds<\/p>\n<p>-v, &#8211;verbose<br \/>\nalways output headers giving file names<\/p>\n<p>&#8211;help display this help and exit<\/p>\n<p>&#8211;version<br \/>\noutput version information and exit<\/p>\n<p>If the first character of K (the number of bytes or lines) is a &#8216;+&#8217;,<br \/>\nprint beginning with the Kth item from the start of each file,<br \/>\notherwise, print the last K items in the file.\u00a0 K may have a<br \/>\nmultiplier suffix: b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024,<br \/>\nGB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y.<\/p>\n<p>With &#8211;follow (-f), tail defaults to following the file descriptor,<br \/>\nwhich means that even if a tail&#8217;ed file is renamed, tail will<br \/>\ncontinue to track its end.\u00a0 This default behavior is not desirable<br \/>\nwhen you really want to track the actual name of the file, not the<br \/>\nfile descriptor (e.g., log rotation).\u00a0 Use &#8211;follow=name in that<br \/>\ncase.\u00a0 That causes tail to track the named file in a way that<br \/>\naccommodates renaming, removal and creation.<\/p>\n<p>GNU coreutils online help: &lt;http:\/\/www.gnu.org\/software\/coreutils\/&gt;<br \/>\nReport tail translation bugs to &lt;http:\/\/translationproject.org\/team\/&gt;<\/p>\n<p>AUTHOR<\/p>\n<p>Written by Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim<br \/>\nMeyering.<\/p>\n<p>COPYRIGHT<\/p>\n<p>Copyright \u00a9 2014 Free Software Foundation, Inc.\u00a0 License GPLv3+: GNU<br \/>\nGPL version 3 or later &lt;http:\/\/gnu.org\/licenses\/gpl.html&gt;.<br \/>\nThis is free software: you are free to change and redistribute it.<br \/>\nThere is NO WARRANTY, to the extent permitted by law.<\/p>\n<p>SEE ALSO<\/p>\n<p>The full documentation for tail is maintained as a Texinfo manual.<br \/>\nIf the info and tail programs are properly installed at your site,<br \/>\nthe command<\/p>\n<p>info coreutils &#8216;tail invocation&#8217;<\/p>\n<p>should give you access to the complete manual.<\/p>\n<p>COLOPHON<\/p>\n<p>This page is part of the coreutils (basic file, shell and text<br \/>\nmanipulation utilities) project.\u00a0 Information about the project can<br \/>\nbe found at \u27e8http:\/\/www.gnu.org\/software\/coreutils\/\u27e9.\u00a0 If you have a<br \/>\nbug report for this manual page, see<br \/>\n\u27e8http:\/\/www.gnu.org\/software\/coreutils\/\u27e9.\u00a0 This page was obtained from<br \/>\nthe tarball coreutils-8.23.tar.xz fetched from<br \/>\n\u27e8http:\/\/www.gnutls.org\/download.html\u27e9 on 2014-12-30.\u00a0 If you discover<br \/>\nany rendering problems in this HTML version of the page, or you<br \/>\nbelieve there is a better or more up-to-date source for the page, or<br \/>\nyou have corrections or improvements to the information in this<br \/>\nCOLOPHON (which is not part of the original manual page), send a mail<br \/>\nto\u00a0man-pages@man7.org<\/p>\n<p>GNU coreutils 8.23\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 December 2014\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TAIL(1)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TAIL(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TAIL(1) NAME tail &#8211; output the last part of files SYNOPSIS tail [OPTION]&#8230; [FILE]&#8230; DESCRIPTION Print the last 10 lines of each FILE to standard output.\u00a0 With more than one FILE, precede each with a header giving the file name.\u00a0 With no FILE, or when FILE is -, read standard input. Mandatory [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-363","post","type-post","status-publish","format-standard","hentry","category-shell"],"a3_pvc":{"activated":false,"total_views":0,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=363"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/363\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}