jeffmcneill
jeffmcneill

Reputation: 2270

Is there a way of editing crontabs without using vi?

The standard way of crontabs -e is ok, but it would be nice if could do edits using nano, or perhaps just using echo from the shell, for inserting new cron jobs. Is this possible?

Upvotes: 2

Views: 1256

Answers (1)

JohnHoulderUK
JohnHoulderUK

Reputation: 679

You can set the editor that you want to use to edit your crontabs using export VISUAL=nano; crontab -e. Also, each user's crontabs can be found in /var/spool/cron/crontabs and there's various cron files and folders in /etc with /etc/crontab being the global crontab file.

Upvotes: 3

Related Questions