内膜厚是什么原因| 什么醒酒最快| 射手男和什么座最配对| 蚯蚓是什么动物| z是什么品牌| 鱼的五行属什么| 过敏性鼻炎吃什么药好| 丑未相冲的结果是什么| 匈奴是现在的什么民族| 考试前吃什么能让大脑发挥最佳| 感性的人是什么意思| 文化大革命什么时候结束| 曱亢有什么症状| 晟这个字念什么| 脾胃不好吃什么药好| 名节是什么意思| 鲍鱼什么意思| 什么是化学性肝损伤| 狼吞虎咽是什么生肖| 总胆固醇高说明什么| 喜欢紫色代表什么| 肩膀酸胀是什么原因| 小便有点黄是什么原因| 小别胜新婚是什么意思| 老年人脚浮肿是什么原因| 属马的是什么星座| 希特勒为什么杀犹太人| 肺有问题会出现什么症状| 生育保险有什么用| 质是什么意思| 肿瘤吃什么中药能消除| 打屁很臭是什么原因| 什么叫粳米| 摧枯拉朽什么意思| i.t品牌什么档次| 胃出血是什么症状| 骨盐量偏低是什么意思| 唐氏综合征是什么原因造成的| 泥鳅喜欢吃什么食物| 乱的偏旁是什么| 吃什么水果可以减肥| 做是什么感觉| 食指长痣代表什么| 门字五行属什么| 逆时针是什么方向| 甲亢在中医里叫什么病| 转载是什么意思| 西瓜不能和什么一起吃| 腋下副乳有什么危害吗| 当兵对牙齿有什么要求| 梦见买楼房有什么预兆| 宫缩是什么原因引起的| 玛尼是什么意思| 吃什么好排大便| 舌头白苔厚是什么原因| 儿童口腔溃疡用什么药| 芒果有什么营养| 血小板升高是什么原因| longines是什么牌子| 什么是甲状腺结节病| 什么时候验孕最准确| 咳嗽用什么药| 农历七月是什么月份| 毅五行属什么| 提是什么生肖| 腹泻吃什么食物| 格力空调se是什么意思| 吃什么补脑增强记忆力| 鸡精和味精有什么区别| 黑色上衣搭配什么颜色裤子好看| 轮廓是什么意思| 酒是什么时候发明的| 什么的讲| 虾和什么蔬菜搭配最好| 平均血红蛋白含量偏低是什么意思| 俊俏什么意思| 什么洗面奶好用| 痰核是什么意思| 高汤是什么汤| 晚上3点是什么时辰| 什么的眉毛| 花圃是什么意思| 猫贫血吃什么补血最快| 什么中药补气血效果最好| 3月9号是什么星座| 生蛇是什么原因引起的| 黄瓜含有什么营养成分| 什么是九宫格| 职称有什么用| 病人化疗期间吃什么好| 植入是什么意思| 胎记看什么科| 什么仇什么怨| 水肿吃什么药消肿最快| 膑是什么意思| 神经疼吃什么药| 孕妇梦见老公出轨是什么意思| 什么时候割包皮最好| 头痛反胃想吐什么原因| 梦见生孩子是什么意思| 淋巴结炎吃什么药| 美育是什么| 四季不安痣是什么意思| 莹字五行属什么| 鬼冢虎属于什么档次| 龙和什么生肖相冲| loewe是什么意思| 稠是什么意思| 大便长期不成形是什么原因| 今年16岁属什么生肖| 痔疮什么感觉| 子宫肌瘤有什么症状| 什么颜色衣服最防晒| 一岁宝宝口臭是什么原因引起的| a型血的人是什么性格| 苦瓜吃多了有什么坏处| 大红色配什么颜色好看| 老子为什么叫老子| 二级警督是什么级别| 甲状腺结节伴钙化什么意思| 社恐到底在害怕什么| 送医生什么礼物好| street是什么意思| 鼠的守护神是什么菩萨| 天天想睡觉没精神是什么原因| 为什么吃芒果会过敏| 玉米除草剂什么时候打最好| 妲己是什么意思| 什么的叫| 鼻子干痒是什么原因| 周传雄得了什么病| 脚崴了挂什么科| 爱拍马屁的动物是什么生肖| 1976年是什么命| 十全十美指什么生肖| 清考是什么意思| 小孩耳鸣是什么原因引起的| 怀孕肚子疼是什么原因| 55岁属什么生肖| 月牙消失了是什么原因| 手术后喝什么鱼汤最好| 氧分压是什么意思| 乳腺增生吃什么药好| 失足妇女是什么意思| 谷氨酰基转移酶低是什么原因| 避孕套有什么作用| 稷是什么意思| 不宜是什么意思| 女生补气血吃什么好| 什么无终| 什么叫磁场| 6月1日什么星座| 炖猪蹄放什么调料| 六月初五是什么日子| 骨密度低吃什么药最快| 晞是什么意思| 胆囊炎用什么药| 六个点是什么意思| 额头老出汗是什么原因| 一个月一个亏念什么| 北方五行属什么| 芪明颗粒主治什么病| 梦见小白兔是什么意思| 元武道是什么| 土黄色裤子配什么颜色上衣| 布谷鸟什么时候叫| 做蹲起有什么好处| 什么的城堡| 阁字五行属什么| 手指起倒刺是什么原因| 胆汁淤积吃什么药| squirrel是什么意思| 7.14什么情人节| 肌酐激酶高是什么原因| 白细胞低是怎么回事有什么危害| 上颚疼痛吃什么药| 肾炎吃什么药| 格林巴利综合症是什么病| 露营需要准备什么东西| 抽筋是什么病| 面瘫挂什么科| 腿疼去医院挂什么科| 马铃薯什么时候传入中国| 副乳是什么原因造成的| 螳螂吃什么食物| 脖子长小肉粒是什么原因| 笑靥什么意思| 茶叶五行属什么| 荨麻疹不能吃什么| 穷奢极欲什么意思| 抑郁到什么程度要吃氟西汀| 利而不害为而不争是什么意思| 小狗打什么疫苗| 西兰花和什么菜搭配| 形态各异是什么意思| 脖子大是什么原因| 阿尔茨海默症是什么症状| zf是什么意思| 深度水解奶粉是什么意思| 雪霁是什么意思| 河南什么烟出名| 日丙念什么| 为什么会长寻常疣| 早筛是检查什么项目| 心仪的人是什么意思| 9.7是什么星座| 你干什么呢| 艾滋病皮肤有什么症状| 流产用什么药最快| 腋下淋巴结挂什么科| 闭关是什么意思| tab是什么意思| 什么是执念| 大便排不出来是什么原因| 舌头发白吃什么药好| 中考报名号是什么| 猫为什么不怕蛇| 二月一日是什么星座| hvp阳性是什么病| 吃枸杞有什么好处| 用什么泡脚可以脸上祛斑| 包皮痒用什么药| 梦见自己在洗澡是什么意思| 什么雷声| 太阳鱼是什么鱼| 翻过山越过海是什么歌| 王八蛋是什么意思| 做梦梦见蛇是什么意思| 前面有个豹子是什么车| 司马光和司马迁是什么关系| 为什么筋膜炎一躺下才会疼| 上窄下宽的脸型适合什么发型| 八字桃花是什么意思| 三醋酯纤维是什么面料| 感统失调是什么意思| 伤心的反义词是什么| 79年属什么的| 空调什么牌子好| 白细胞3个加号是什么意思| 事业单位是指什么| 血红蛋白高是什么意思| 肛瘘不治疗有什么后果| 肝功能检查什么| 冬虫夏草长什么样| 尿痛吃什么药效果最好| 桂花像什么| 采是什么意思| 高甘油三酯血症是什么意思| 翳什么意思| 男性hpv检查挂什么科| 水猴子长什么样| 12月14日是什么星座| 磨牙齿是什么原因| 提高免疫力吃什么食物| 放纵什么意思| 经期有血块是什么原因| 皮肤痒是什么原因| 毛囊炎挂什么科| 苹果不能和什么一起吃| 什么地赞叹| 做梦梦到蛆是什么意思| 四大才子中状元是什么生肖| 活水是什么意思| nrc是什么意思| 百度Jump to content

菲律宾总统杜特尔特官邸附近发生枪击事件

From Wikipedia, the free encyclopedia
tail
Developer(s)Various open-source and commercial developers
Written inC
Operating systemUnix, Unix-like, V, Plan 9, Inferno, MSX-DOS, FreeDOS
PlatformCross-platform
TypeCommand
LicensePlan 9: Lucent Public License or GPLv2 or MIT License
coreutils: GPLv3+
百度   《台湾旅行法》准确说是中美关系的问题。

tail is a program available on Unix, Unix-like systems, FreeDOS and MSX-DOS used to display the tail end of a text file or piped data.

Implementations

[edit]

The version of tail bundled in GNU coreutils was written by Paul Rubin, David MacKenzie, Ian Lance Taylor, and Jim Meyering.[1] The command is available as a separate package for Microsoft Windows as part of the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities.[2] The FreeDOS version was developed by M. Aitchison.[3] A tail command is also part of ASCII's MSX-DOS2 Tools for MSX-DOS version 2.[4]

CCZE is tail-like while displaying its output in color.[5]

pctail is similar to CCZE. It is a colorized tail programmed in Python which tails and colorizes syslog output.[6]

Inotail was an implementation using the inotify Linux kernel interface (introduced in version 2.6.13 in August 2005) to check whether new data is available instead of polling every second, as the original tail did.[7] However, newer versions[which?] of tail also started using inotifiy when possible, so Inotail became deprecated and is not longer maintained.

MultiTail not only displays logfiles in colors, it can also merge, filter, scrollback and split a terminal window into subwindows.[8] It is more or less a combination of tail, sed, watch, CCZE/pctail, grep, diff, Beeper and others.

Syntax

[edit]

The command-syntax is:

tail [options] <filename>

By default, tail will output the last 10 lines of its input to the standard output. With command line options, the amount of output and the units (lines, blocks or bytes) may be changed.

In the following example only the last line of the reports is output:

$ tail -n1 report-13*
==> report-1301 <==
Total tons output for month of January '13 was 523

==> report-1302 <==
Total tons output for month of February '13 was 272

==> report-1303 <==
Total tons output for month of March '13 was 623

This example outputs the last 4 characters of the reports, silently suppressing the filenames. Notice that the count includes the newline character at the end of each line and so the output does not include a leading space one might expect.

$ tail --silent -c4 report*
523
272
623

This example shows all lines of report from the second line onwards:

tail -n +2 report

Using an older syntax (still used in older version of Sun Solaris as the -n option is not supported), the last 20 lines and the last 50 bytes of filename can be shown with the following command:

tail -20 filename
tail -50c filename

However this syntax is now obsolete and does not conform with the POSIX 1003.1-2001 standard. Even if still supported in current versions, when used with other options (like -f, see below), these switches could not work at all.

As with all Unix commands, use man pages on the running system for specific options and actions.

File monitoring

[edit]

tail has two special command line option -f and -F (follow) that allows a file to be monitored. Instead of just displaying the last few lines and exiting, tail displays the lines and then monitors the file. As new lines are added to the file by another process, tail updates the display. This is particularly useful for monitoring log files. Ancient versions of tail poll the file every second by default but tail from the GNU coreutils as of version 7.5 support the inotify infrastructure introduced in Linux kernel version 2.6.13 in August 2005 which only check the file when is notified of changes by the kernel.

The following command will display the last 10 lines of messages and append new lines to the display as new lines are added to messages:

tail -f /var/adm/messages

To keep following the log even when it is recreated, renamed, or removed as part of log rotation, at least BSD and GNU implementations provide a -F option which is useful in cases when the user is following a log file that rotates.

tail -F /var/adm/messages

To interrupt tail while it is monitoring, break-in with Ctrl+C. This command can be run "in the background" with &, see job control.

If the user has a command's result to monitor, the watch command can be used.

There is a GNU Emacs mode that emulates the functionality of tail -f, called auto-revert-tail-mode.

See also

[edit]

References

[edit]
  1. ^ "tail(1): output last part of files - Linux man page". linux.die.net.
  2. ^ "Native Win32 ports of some GNU utilities". unxutils.sourceforge.net.
  3. ^ "ibiblio.org FreeDOS Package -- tail (Unix-like)". www.ibiblio.org.
  4. ^ "MSX-DOS2 Tools User's Manual - MSX-DOS2 TOOLS ユーザーズマニュアル". April 1, 1993 – via Internet Archive.
  5. ^ "CCZE". freshmeat.sourceforge.net.
  6. ^ "pctail". SourceForge. 25 February 2013.
  7. ^ "inotail". distanz.ch.
  8. ^ Kalsi, Tajinder (2016). Practical Linux Security Cookbook. Packt Publishing Ltd. pp. 234–236. ISBN 9781785285301. Retrieved 22 September 2017.
[edit]
中国四大国粹是什么 支原体感染是什么症状 小结节是什么意思 贫血吃什么水果好 双肺结节是什么意思
酸奶什么时候喝最好 laurel是什么牌子 吃叶酸有什么好处 宝宝什么时候开始长牙 吃什么解辣最快方法
什么叫耳石症 六害是什么意思 北京大栅栏有什么好玩的 胃湿热吃什么药 眉毛浓的男人代表什么
口舌生疮吃什么药最好 神昏谵语是什么意思 剁椒鱼头是什么鱼头 水瓶座女生和什么星座男生最配 大米里放什么不生虫子
排骨汤什么时候放盐最好hcv8jop3ns7r.cn 减肥头晕是什么原因hcv9jop4ns4r.cn 竹棉和纯棉有什么区别hcv7jop9ns7r.cn 女人吃桃子有什么好处和坏处hcv8jop8ns7r.cn 夏天喝什么粥hcv8jop4ns9r.cn
寒湿重吃什么药hcv9jop1ns9r.cn 胃袋是什么hcv8jop7ns0r.cn 急支糖浆是什么梗hcv9jop4ns3r.cn 泡脚有什么好处hcv9jop7ns3r.cn 代价是什么意思hcv9jop8ns2r.cn
吩咐是什么意思hcv7jop7ns2r.cn 软蛋是什么意思hcv8jop2ns3r.cn 脑出血有什么后遗症hcv9jop6ns4r.cn 脱臼是指什么从什么中滑脱hcv9jop5ns9r.cn 挑拨离间是什么意思hcv8jop3ns1r.cn
什么是m属性hcv8jop3ns7r.cn 阑尾炎是什么huizhijixie.com 入党有什么好处hcv9jop2ns8r.cn 狄仁杰为什么才三品hcv8jop9ns3r.cn 丢钱是什么预兆hcv8jop7ns2r.cn
百度