tail(1)
πΈ tail(1) β the "gimme the END of it" era πΈ
okay bestie, so this is tail, and she lives in the General Commands Manual section 1. she is THE moment for peeking at the bottom of files and honestly? iconic. π
β¨ NAME β¨
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 flags are mandatory for short flags too.
π SYNOPSIS π
tail [-c|--bytes] [-f|--follow] [-n|--lines] [--pid] [-q|--quiet]
[-s|--sleep-interval] [--max-unchanged-stats] [-v|--verbose]
[-z|--zero-terminated] [--use-polling] [--retry] [-F ] [--debug]
[-h|--help] [-V|--version] [files]
π DESCRIPTION π
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 flags are mandatory for short flags too.
no cap, that's the whole vibe: you point her at a file, she shows you the tail end of it. ππ¦ and if you hand her a bunch of files at once, she's polite enough to label each one with a header so you know whose vibes you're reading. π
π OPTIONS π
-c,--bytesβ number of bytes to print. she counts bytes, not lines. it's giving precise. π-f,--followβ print the file as it grows. she just keeps watching, like a loyal bestie in the group chat. π
Possible values:
descriptorname
-n,--linesβ number of lines to print. the classic. π--pid <PID>β with-f, terminate after process ID, PID dies. so she follows along until that process ghosts, then she dips too. π-q,--quietβ never output headers giving file names. no labels, just content. minimalism era. π€«-s,--sleep-interval <N>β number of seconds to sleep between polling the file when running with-f. she takes little naps between check-ins. π΄--max-unchanged-stats <N>β 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); this option is meaningful only when polling (i.e., with--use-polling) and when--follow=name. it's the "hey girl, are you still there??" check. π«Ά-v,--verboseβ always output headers giving file names. she's gonna announce everything, main character energy. π£-z,--zero-terminatedβ line delimiter is NUL, not newline. fancy. NUL is her newline now. β¨--use-pollingβ disable'inotify'support and use polling instead. old-school check-ins, no fancy notifications. π’--retryβ keep trying to open a file if it is inaccessible. she does NOT give up on you. π€-Fβ same as--follow=name --retry. the combo meal. π₯--debugβ indicate which--followimplementation is used. she tells you which method she's running, for the nosy besties. π-h,--helpβ print help. π-V,--versionβ print version. π[files]β the files! the whole point! point her at them! π
lowkey important reminder bestie: "mandatory arguments to long flags are mandatory for short flags too" β so if a long flag needs a value, the short version needs one too. no skipping. periodt. π
β VERSION β
v(uutils coreutils) 0.7.0
and that's the whole page!! thank you for coming to my ted talk. this masterpiece is brought to you by uutils coreutils, version 0.7.0 β the tail (uutils coreutils) 0.7.0 era, no date on this one, she's timeless like that. π¦β¨π mwah, go read some file endings, you ate. π
π¦ where this page comes from
- epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
- epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
- fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms