# cat session.conf | head -n 3
<!-- This configuration file controls the per-user-login-session message bus.
Add a session-local.conf and edit that rather than changing this
file directly. -->
bash-3.2# cat session.conf | head -n 5
<!-- This configuration file controls the per-user-login-session message bus.
Add a session-local.conf and edit that rather than changing this
file directly. -->
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-Bus Bus Configuration 1.0//EN"
-c, --bytes=[-]N 显示每个文件的前N 字节内容;
如果附加"-"参数,则除了每个文件的最后N字节数据外
显示剩余全部内容
-n, --lines=[-]N 显示每个文件的前N 行内容;
如果附加"-"参数,则除了每个文件的最后N 行外显示
剩余全部内容
-q, --quiet, --silent 不显示包含给定文件名的文件头
-v, --verbose 总是显示包含给定文件名的文件头
用法:tail [选项]... [文件]...
显示每个指定文件的最后10 行到标准输出。
若指定了多于一个文件,程序会在每段输出的开始添加相应文件名作为头。
如果不指定文件或文件为"-" ,则从标准输入读取数据。
长选项必须用的参数在使用短选项时也是必需的。
-c, --bytes=N 输出最后N 字节;另外,使用+N 从每个文件的第N 字节输出
-n, --lines=N 输出最后N 行,代替最后的10;使用+N 从每个文件的第N行输出