TAIL 1 2022年9月

中文man手册

TAIL

åç§°
æ¦è¿°
æè¿°
ä½è
æ¥åé误
çæ
åè§
è·

åç§°

tail - è¾åºæä»¶çæ«å°¾é¨å

æ¦è¿°

tail [é项]... [æä»¶å表]...

æè¿°

å°æä»¶å表ä¸- æ¯ä¸ªæä»¶çåæ°10è¡å容è¾åºè³æåè¾åºã妿æå®å¤ä¸ªæä»¶ï¼åä¼å¨æ¯ä¸ªæä»¶çé¨åä¹åæ·»åç»å®æä»¶åç§°ã

å¦ææ²¡ææå®æä»¶ï¼æèæå®æä»¶ä¸ºâ-âï¼å仿 åè¾å¥è¯»åã

å¿é忰坹é¿çé项忶éç¨ã
-c
, --bytes=[+]NUM

è¾åºæå NUM 个åèï¼æèä½¿ç¨ -c +NUM è¾åºæ¯ä¸ªæä»¶ä»ç¬¬ NUM 个å- èå¼å§çæ°æ®

-f, --follow[={name|descriptor}]

éæä»¶å¢é¿å³æ¶è¾åºæ°å¢æ°æ®ï¼

è¥æªç»å®é项忰ï¼åé»è®¤ä½¿ç¨ ’descriptor’

-F

å --follow=name --retry ç¸å

-n, --lines=[+]NUM

output the last NUM lines, instead of the last 10; or use -n +NUM to output starting with line NUM

--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

å -f åæ¶ä½¿ç¨æ¶ï¼å¨è¿ç¨å·ä¸º PID çè¿ç¨ç»æåç»æ¢æ§è¡

-q, --quiet, --silent

ä¸è¾åºå«ææä»¶åç头

--retry

妿æä»¶æ æ³è®¿é®ï¼ä¸ç´éå¤å°è¯æå¼æä»¶

-s, --sleep-interval=N

å -f åæ¶ä½¿ç¨æ¶ï¼å¨ä¸¤æ¬¡è¿ä»£ä¹é´ç¡ç çº¦ N ç§ï¼é»è®¤ 1.0 ç§ï¼ï¼åæ ¸æ¯æ inotify ä¸ä½¿ç¨äº --pid=P æ¶ï¼æ¯ N ç§è³å°æ£æ¥ä¸æ¬¡è¿ç¨ P

-v, --verbose

æ»æ¯è¾åºå«ææä»¶åç头

-z, --zero-terminated

以 NUL ä½ä¸ºè¡çåé符ï¼è鿢è¡ç¬¦

--help

æ¾ç¤ºæ¤å¸®å©ä¿¡æ¯å¹¶éåº

--version

æ¾ç¤ºçæ¬ä¿¡æ¯å¹¶éåº

NUM åé¢å¯ä»¥å ä¸ä¹æ°åç¼ï¼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 以æ¤ç±»æ¨ã ä¹å¯ä»¥ä½¿ç¨äºè¿å¶åç¼ï¼KiB=KãMiB=Mï¼ä»¥æ¤ç±»æ¨ã

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.

ä½è

ç± Paul RubinãDavid MacKenzie å Jim Meyering ç¼åã

æ¥åé误

GNU coreutils çå¨çº¿å¸®å©ï¼ <https://www.gnu.org/software/coreutils/>
请å <https://translationproject.org/team/zh_CN.html> æ¥åç¿»è¯é误ã

çæ

Copyright © 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
æ¬è½¯ä»¶æ¯èªç±è½¯ä»¶ï¼æ¨å¯ä»¥èªç±ä¿®æ¹åéæ°åå¸å®ã卿³å¾å许çèå´åï¼ä¸æä¾ä»»ä½ä¿è¯ã

åè§

head(1)

宿´ææ¡£è¯·è§ï¼<https://www.gnu.org/software/coreutils/tail>
æè卿¬å°ä½¿ç¨ï¼ info '(coreutils) tail invocation'

è·

æ¬é¡µé¢ä¸æçç±ä¸æ man æå页计åæä¾ã
䏿 man æå页计åï¼https://github.com/man-pages-zh/manpages-zh