linux之tail命令

来源:互联网 发布:域名购买哪个网站好 编辑:程序博客网 时间:2024/06/12 07:28

用法:head [选项]… [文件]…
Print the first 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.
-q 隐藏文件名

-v 显示文件名

-c<字节> 显示字节数

-n<行数> 显示的行数

K 后面可以跟乘号:
b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024,
GB 1000*1000*1000, G 1024*1024*1024, 对于T, P, E, Z, Y 同样适用。

举例说明:
显示前5行:
这里写图片描述

0 0
原创粉丝点击