SINCE(1)
π SINCE(1) π
ok so bestie, welcome to the User Manuals section, and this little icon right here is called since β yes the man page is named SINCE(1), we love a dramatic all-caps moment π
β¨ NAME β¨
since β display content of a file since the last time π°οΈ
πΈ SYNOPSIS πΈ
since [-aefhlmnqvxz] [-d seconds] [-s file] files
π¦ DESCRIPTION π¦
ok so since is a utility designed to monitor log files. no cap, that's the whole job. π
since is similar to tail(2) as it also displays information appended to a file. however β and this is the main character plot twist β since only displays the data which has been added since the last time since was run. so it remembers. it keeps receipts. it's that friend who actually read the group chat. π
and if since is run on a particular file for the first time, then the entire file is displayed. the whole thing. no holding back. π
β EXAMPLE β
since /var/log/apache/{access,error}_log > /dev/null
lynx --dump http://localhost/ > /dev/null
since /var/log/apache/{access,error}_log
it's giving "poke the server, then see what it had to say about it" π«Ά
π OPTIONS π
-aβ Make updates to thesincestate files atomic. This option configuressinceto use a temporary file and arename(2)instead of updating the state file in situ. no half-written state files, we do clean handoffs only β¨-dseconds β Specify the number of integer seconds to wait between polling files for changes. This option is only relevant in conjunction with the-foption and if the inotify mechanism is not being used. so like, patience settings π-eβ Print the header lines to standard error instead of standard output. headers go to the other door πͺ-fβ Follow the specified files. This option is analogous totail -fas the files are also polled for changes until the process is interrupted. it just. keeps. watching. π (interrupt it when you're done, bestie)-hβ Print a terse help message. short king behavior π-lβ Relaxed mode. If some data files are inaccessiblesincewill not fail completely. it's not gonna crash out over one inaccessible file, it's got chill π-mβ Disablemmap(2), useread(2)instead to access state and data files. Note that for certain smaller io operationsread(2)may be used even if this option has not been given. plot twist: sometimes it does this anyway π-nβ Do not update the.sincefile which keeps track of file growth. no memory today, we're living in the moment π-qβ Make the utility operate more quietly. π€«-sfilename β Specify the state file explicitly. Using this option will also disable the use of fallback state files. you pick the file, and there is no plan b, periodt π-vβ Increase the verbosity. This option can be given multiple times. more-v= more talking π£οΈ-xβ Ignore file arguments which have compressed extensions. zip? gz? not today bestie π«-zβ Discard output. Similar to redirecting the output to/dev/null, but faster. If used in conjunction with the-foption, only the initial output will be discarded. so with-fit's like "throw away the first dump, then actually show me the rest" ποΈβ¨
π FILES π
.sinceβ State file recording the length of the previously displayed files. The location of the file can be set on the command line using the-soption. If this option is not given,sincewill check theSINCEenvironment variable for the location of the state file. If theSINCEenvironment variable has not been setsincewill use theHOMEenvironment variable and store the information in the file$HOME/.since. If theHOMEvariable is not set,sincewill use agetpwuid(3)lookup. If all these fail will use the file/tmp/since.
it's a whole chain of "okay well where do we put it then" β -s, then SINCE, then $HOME/.since, then getpwuid(3), then finally /tmp/since. the state file always finds a home π π
π BUGS π
sinceuses the inode of a file as its key, if that inode is recycledsincewill get confused. π
since is not particularly efficient when storing or looking up the stat(2) information. Functionality equivalent to since can probably be achieved with a number of trivial shell scripts. okay it said it, not me π
π COPYING π
since may only be used, distributed and modified in accordance with the terms of the GPL (GNU General Public License) version 3 or newer as published by the FSF (Free Software Foundation). legal bestie behavior, respect the license π«Ά
π SEE ALSO π
and that's the whole page, bestie π this one's from the Linux corner of the world, dated JULY 1998, and the page signs off as SINCE(1). yeah it's old. it still ate. mwah π β¨
π¦ where this page comes from
- debian bookworm: since 1.1-7 Β· GPL-3.0-or-later
- debian trixie: since 1.1-7 Β· GPL-3.0-or-later
- fedora 43: since 1.1-32.fc43 Β· GPL-3.0-or-later
- fedora 44: since 1.1-33.fc44 Β· GPL-3.0-or-later
- ubuntu jammy: since 1.1-7 Β· GPL-3.0-or-later
- ubuntu noble: since 1.1-7 Β· GPL-3.0-or-later
- ubuntu resolute: since 1.1-7build1 Β· GPL-3.0-or-later
- ubuntu stonking: since 1.1-7build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms