用法:tail [选项]… [文件]…
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; or use -c +K to output
bytes starting with the Kth of each file
-f, --follow[={name|descriptor}]
output appended data as the file grows;
an absent option argument means ‘descriptor’
-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 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 if it is inaccessible
-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 显示此帮助信息并退出
–version 显示版本信息并退出

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 10001000, M 10241024,
GB 100010001000, G 102410241024, and so on for T, P, E, Z, Y.

如果您希望即时追查一个文件的有效名称而非描述内容(例如循环日志),默认
的程序动作并不如您所愿。在这种场合可以使用–follow=name 选项,它会使
tail 定期追踪打开给定名称的文件,以确认它是否被删除或被其它某些程序重新创建过。

GNU coreutils online help: http://www.gnu.org/software/coreutils/
请向http://translationproject.org/team/zh_CN.html 报告tail 的翻译错误
要获取完整文档,请运行:info coreutils ‘tail invocation’

Linux命令解释之tail相关推荐

  1. 学习linux的好助手-linux命令解释工具

    有时候在听学习视频时,看到大佬输入没见过的linux命令行,就不知道什么意思. 现在可以通过在线工具Linux命令解释工具输入你的命令,就会告诉你什么意思,并且对每个参数进行了解释,简直是菜鸟的福音. ...

  2. Linux中head和tail命令作用,Linux 命令head和tail常见用法详解

    head和tail是一组想对应的命令,默认分别显示文件的开头和末尾10行记录. head head 命令可以将一段文本的开头一部分输出到标准输出. head命令既可以处理文本文件也可以处理标准输入. ...

  3. Linux命令,grep,tail,more,压缩备份

    Linux系统文件夹及文件操作 理论基础 Linux文件系统采用树形结构,从根目录root(/)开始. Linux的文件是无结构字符流式文件,不考虑文件内部的逻辑结构,只把文件简单地看作是一系列字符的 ...

  4. Linux命令解释之grep

    [root@node1 ~]# grep --help 用法: grep [选项]- PATTERN [FILE]- 在每个 FILE 或是标准输入中查找 PATTERN. 默认的 PATTERN 是 ...

  5. linux命令解释pwd,Linux中pwd命令有什么用

    摘要 腾兴网为您分享:Linux中pwd命令有什么用,作业盒子,中国知网,优衣库,一点万象等软件知识,以及k游戏,秒表计时器,硬盘低格工具,uc漫画阅读器,数据迁移软件,约球app,raw格式,网易 ...

  6. Linux命令-1:tail命令详解

    由于测试过程中经常需要实时查看Tomcat日志,所以要掌握tail命令的用法.将平时用到的在此记录汇总一下. 实时打印文件内容 tail -f filename 显示文件的最后10行 tail fil ...

  7. Linux命令解释之rm

    用法:rm [选项]- 文件- Remove (unlink) the FILE(s). -f, --force ignore nonexistent files and arguments, nev ...

  8. Linux命令解释之sed

    用法: sed [选项]- {脚本(如果没有其他脚本)} [输入文件]- -n, --quiet, --silent 取消自动打印模式空间 -e 脚本, --expression=脚本 添加" ...

  9. Linux命令解释之find

    用法: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path-] [expression] 默认路 ...

最新文章

  1. Spring学习-理解IOC和依赖注入
  2. 如何设置chrome谷歌浏览器不显示图片
  3. 文本匹配_如何又好又快的做文本匹配
  4. 计算机科学CSTA,学编程,搞懂CSTA K-12计算机科学学习标准
  5. 猪流感来了,我们做好准备了吗
  6. python找不到os模块_python之os模块
  7. IOC AOP 设计模式
  8. django框架 day06
  9. figma客户端_小白的Figma入门手册
  10. TextCNN可以和对比学习融合吗-SimCSE论文读后感
  11. spss主成分综合得分_权重赋值之“主成分分析法”
  12. java面经合集(面试遇到的)
  13. 二总线芯片RF601
  14. 基于c51的节日彩灯控制器的设计
  15. 通过InstallShield官网申请注册码
  16. 耄耋的三星,蹒跚的步履
  17. day04-硅谷课堂-前端基础知识(二)
  18. 主流智能手机屏幕材质介绍
  19. ICPC 2017 Daejeon-Slot Machines
  20. redis 迁移工具 redis-port 从阿里云迁移到aws

热门文章

  1. PowerShell 以管理员身份运行 cmd(命令行窗口),或其他程序
  2. 关于firefox火狐中localStorage无法正常使用的问题
  3. 【Linux】awk处理变量
  4. 【Oracle】设置快速恢复区及reset快速恢复区
  5. 解决命令行的乱码以及编码的问题
  6. 终极解决方案——sbt配置阿里镜像源,解决sbt下载慢,dump project structure from sbt耗时问题
  7. pytorch神经网络解决回归问题(非常易懂)
  8. Python读取文件时出现UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0x80 in position xx: 解决方案
  9. IDEA中解决Edit Configurations中没有tomcat Server选项的问题(附配置Tomcat)
  10. 如何从控制台测试AngularJS服务?