incrontab(1)
π incrontab β the table manipulator for inotify cron (incron) π
okay bestie, welcome to incrontab(1), aka the incron documentation's most iconic little tool π this page lives in section 1 of the manual and it's about to make your whole cron-adjacent life make sense, no cap.
β¨ SYNOPSIS β¨
incrontab [-u user] [-f config] file
incrontab [-u user] [-f config] [-l | -r | -e | -t | -d]
two forms, one queen π that's literally it.
πΈ DESCRIPTION πΈ
so incrontab is a table manipulator for the inotify cron (incron) system, fr fr. it creates, removes, modifies and lists user tables β those are the incrontab(5) ones in case you were wondering π¦
every single user gets an incron table. and when we say every user we mean every user β even system users that don't even have home directories, they get one too π the catch? you can't manipulate these tables directly. only root can effectively change them, and honestly? it is NOT recommended to do so. like, at all. don't do it. π
also important: all informational messages from this program get printed to the standard error output (stderr). not stdout, bestie, stderr. write that down π
π who's even allowed to use incron
here's the vibe check on permissions:
- if
/etc/incron.allowexists β only the users listed in it may use incron β¨ - otherwise, if
/etc/incron.denyexists β only the users NOT listed in it may use incron π« - if neither of these files exists β literally everyone is allowed to use incron π
β οΈ Important note: this behavior is insecure and will probably be changed to be compatible with the style used by ISC Cron. so enjoy it while it lasts, i guess π
the location of these files can be changed in the configuration, so you're not stuck with the defaults π
π₯ the import form
the first form of this command imports a file, validates it, and stores it to the table. and guess what β you can use - to load from the standard input instead. iconic behavior honestly π«Ά
π© the options, one by one
-u(or--user) β overrides the current (real) user to the given one. this is meant for manipulating system users' tables (thinkapache,postfix,daemon, etc. β the whole squad). it can only be used if the current user has root's effective rights π-l(or--list) β prints the current table to the standard output. simple, clean, we love her π-r(or--remove) β permanently removes the current table (if there even is one) with no warning and no confirmation. gone. deleted. bye. use with caution!! ππ₯-e(or--edit) β fires up an editor so you can edit the user table (editor selection info is below, keep scrolling bestie). you can edit your incron table right now. if the table ends up changed, it stores the modified version π-t(or--types) β prints the list of supported event types, delimited by commas, to the standard output. this one's for front-end applications trying to find out which event types were compiled in π-d(or--reload) β causes the current table to be reloaded byincrond(8). it does this by "touching" the table (writing into it without actually modifying it). this is for stuff like creating watches on newly created files (with already existing rules) or for rearmingIN_ONESHOTwatches β¨-f <FILE>(or--config=<FILE>) β specifies another location for the configuration file./etc/incron.confis used by default. heads up though: this feature requires root privileges π
π§ how the editor gets picked
there's a whole complex algorithm for determining which editor you'll be editing with, and it's giving β¨layersβ¨. if any of the following rules succeeds, that appropriate editor gets used:
EDITORenvironment variableVISUALenvironment variable- configuration value
etc/alternatives/editor- hard-wired editor (
vimby default)
π and a gentle PSA: it's not recommended to use graphical editors (such asgVim,KEdit, etc.) because of possible problems with connecting to the X server. save yourself the heartbreak π
π SEE ALSO π
incrond(8), incrontab(5), incron.conf(5)
go read them, they're the rest of the lore π
π«Ά AUTHOR π«Ά
- Andreas Altair Redmer
<altair.ibn.la.ahad.sy@gmail.com>β please report bugs tohttps://github.com/ar-/incron/issuesπ - Lukas Jelinek
<lukas@aiken.cz>
π COPYING π
this program is free software. it can be used, redistributed and/or modified under the terms of the GNU General Public License, version 2. periodt. π
okay that's the whole page bestie, and as a lil sign-off: this doc is by Lukas Jelinek, it's version 0.5.12, and it belongs to the incrontab(1) manual π now go touch some tables (with -d, not literally) πΈβ¨
π¦ where this page comes from
- alpine 3.24: incron-doc 0.5.12-r0 Β· GPL-2.0
- arch rolling: incron 0.5.12-7 Β· GPL-2.0-only
- debian bookworm: incron 0.5.12-4 Β· GPL-2.0-or-later
- debian trixie: incron 0.5.12-4+b1 Β· GPL-2.0-or-later
- epel 10: incron 0.5.12-28.el10_2 Β· GPL-2.0-only
- epel 9: incron 0.5.12-21.el9 Β· GPLv2
- fedora 43: incron 0.5.12-28.fc43 Β· GPL-2.0-only
- fedora 44: incron 0.5.12-29.fc44 Β· GPL-2.0-only
- nixos 26.05: incron 0.5.12
- nixpkgs unstable: incron 0.5.12
- ubuntu jammy: incron 0.5.12-2build1 Β· GPL-2.0-or-later
- ubuntu noble: incron 0.5.12-4 Β· GPL-2.0-or-later
- ubuntu questing: incron 0.5.12-4
- ubuntu resolute: incron 0.5.12-4build1 Β· GPL-2.0-or-later
- ubuntu stonking: incron 0.5.12-4build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms