Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

50%
+0 −0
Q&A Why does crontab have different flags for its dry-run / linter mode?

If I look at my man 1 crontab, it says that crontab -n file will test the suitability of file as a parseable crontab file. If I look at man 1 crontab on Man7 or ManKier, they both say that -n does...

1 answer  ·  posted 2mo ago by Michael‭  ·  last activity 2mo ago by Michael‭

Question cron
#2: Post edited by user avatar Michael‭ · 2026-07-06T00:04:57Z (2 months ago)
Fix grammar error
  • If I look at *my* `man 1 crontab`, it says that `crontab -n file` will test the suitability of _file_ as a parseable crontab file.
  • If I look at `man 1 crontab` on [Man7][] or [ManKier][], they both say that `-n` does something entirely different, and that `-T` is a linter.
  • 1. What gives?
  • 2. Can run a command that actually performs the linting whichever system I'm on?
  • [man7]: https://www.man7.org/linux/man-pages/man1/crontab.1.html
  • [mankier]: https://www.mankier.com/1/crontab
  • If I look at *my* `man 1 crontab`, it says that `crontab -n file` will test the suitability of _file_ as a parseable crontab file.
  • If I look at `man 1 crontab` on [Man7][] or [ManKier][], they both say that `-n` does something entirely different, and that it's `-T` for a linter.
  • 1. What gives?
  • 2. Can I run a command that actually performs the linting whichever system I'm on?
  • [man7]: https://www.man7.org/linux/man-pages/man1/crontab.1.html
  • [mankier]: https://www.mankier.com/1/crontab
#1: Initial revision by user avatar Michael‭ · 2026-07-06T00:03:28Z (2 months ago)
Why does crontab have different flags for its dry-run / linter mode?
If I look at *my* `man 1 crontab`, it says that `crontab -n file` will test the suitability of _file_ as a parseable crontab file.

If I look at `man 1 crontab` on [Man7][] or [ManKier][], they both say that `-n` does something entirely different, and that `-T` is a linter.

1. What gives?
2. Can run a command that actually performs the linting whichever system I'm on?

[man7]: https://www.man7.org/linux/man-pages/man1/crontab.1.html
[mankier]: https://www.mankier.com/1/crontab