tail
Usage: tail [OPTION]... [FILE]...
Print the last 10 lines of each FILE to standard output.
With more than one FILE, precede each with a header giving the file name.
With no FILE, or when FILE is -, read standard input.
Mandatory arguments to long options are mandatory for short options too.
-c, --bytes=K output the last K bytes; alternatively, use -c +K
to output bytes starting with the Kth of each file
-f, --follow[={name|descriptor}]
output appended data as the file grows;
-f, --follow, and --follow=descriptor are
equivalent
-F same as --follow=name --retry
-n, --lines=K output the last K lines, instead of the last 10;
or use -n +K to output lines starting with the Kth
--max-unchanged-stats=N
with --follow=name, reopen a FILE which has not
changed size after N (default 5) iterations
to see if it has been unlinked or renamed
(this is the usual case of rotated log files).
With inotify, this option is rarely useful.
--pid=PID with -f, terminate after process ID, PID dies
-q, --quiet, --silent never output headers giving file names
--retry keep trying to open a file even when it is or
becomes inaccessible; useful when following by
name, i.e., with --follow=name
-s, --sleep-interval=N with -f, sleep for approximately N seconds
(default 1.0) between iterations.
With inotify and --pid=P, check process P at
least once every N seconds.
-v, --verbose always output headers giving file names
--help display this help and exit
--version output version information and exit
If the first character of K (the number of bytes or lines) is a `+',
print beginning with the Kth item from the start of each file, otherwise,
print the last K items in the file. K may have a multiplier suffix:
b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024,
GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y.
With --follow (-f), tail defaults to following the file descriptor, which
means that even if a tail'ed file is renamed, tail will continue to track
its end. This default behavior is not desirable when you really want to
track the actual name of the file, not the file descriptor (e.g., log
rotation). Use --follow=name in that case. That causes tail to track the
named file in a way that accommodates renaming, removal and creation.
Report tail bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
For complete documentation, run: info coreutils 'tail invocation'
相关推荐
File-Tail-0.99.3.tar.gz File-Tail-0.99.3.tar.gz源码包
file-tail 为rubygem所需要的一个工具,一般是用gem install file-tail下载,该file-tail适用于ruby版本为1.8.5,rubygem版本为1.2.0
linux tail 命令 参数 用法 自己留用
windows下使用tail命令-tail2win 下载之后解压到c:/windows/system32目录下 然后就可以像linux那样使用tail -f 指令
主要介绍了一个简单的linux命令tail,tail命令用来从指定点开始将文件写到标准输出,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
每天一个linux命令(15):tail命令.pdf
每天一个linux命令(15):tail命令分享.pdf
每天一个linux命令(15):tail命令借鉴.pdf
Linux操作系统基础
tail 命令从指定点开始将文件写到标准输出.使用tail命令的-f选项可以方便的查阅正在改变的日志文件,tail -f filename会把filename里最尾部的内容...接下来通过本文给大家介绍PHP实现linux命令tail -f,需要的朋友参考下
Laravel开发-laravel-tail 轻松跟踪应用程序日志
win 平台类似linux的tail 工具
只需要在windows的环境变量里配一下path,就可以再dos命令窗口中运行linux命令,众多命令包括ls,cp,cat,tail,mv,rm,pwd,split,tar,who,find等众多常用命令,找了好久都没有找到,今天偶然发现,欣喜若狂,嘿嘿……
这个是开源的tail工具,有界面的,运行于windows环境。纯鼠标操作,还可以设置关键字过虑与高亮,在日志里面如果出现异常日志时,就可以通过这个功能只显示有问题的行。而不需要被其它正常日志信息阻碍视线
Linux操作系统 兄弟连Linux常用命令 1.1命令格式 Linux命令格式 命令 [-选项] [参数] ctrl+l清屏 1.2目录处理命令 1. ls----显示目录文件 ...6、head-tail---显示文件前面几行,或者后几行 1.4链接
laravel-tail, 用于跟踪应用程序日志的工匠命令 轻松跟踪你的日志 这个软件包提供了一个工匠命令来跟踪应用程序日志。 它支持你本地机器上的每日和单一日志。Spatie是比利时Antwerp的网页设计机构。 你将在我们的...
head和tail是一组想对应的命令,默认分别显示文件的开头和末尾10行记录。 head head 命令可以将一段文本的开头一部分输出到标准输出。...例如,如果想输出前25行,下面三个命令是等价的: head -n25 input.txt head
Laravel开发-tail rabbitmq和php-client for laravel,允许您添加和监听队列消息,非常简单
linux中tail 命令使用详解.docx
windows下实现模拟linux的 tail -f 文件名 命令的实用工具,内含使用说明,工具很小,只有一个几十kb的exe执行文件。