opensuse 42.2
“crontab -e” opens a file from somewhere to edit cron jobs.
Does anyone know where that file is stored?
opensuse 42.2
“crontab -e” opens a file from somewhere to edit cron jobs.
Does anyone know where that file is stored?
/var/spool/cron/tabs/
Thank you.
That is nice knowledge about the internals of cron, but you should NOT edit files there with an editor.
I only needed the location so I would know where to copy it from a backup.
Context: the system disk (an SSD) simply ceased to function after a week’s holiday. It was fine when I left; useless when I returned.
That clarifies a lot. I only wanted to warn you.
BTW my advice to all users to use
crontab -l >contents-of-my-crontab
to save the contents of his/her crontab in text readable form in a file. Assuming the home directory of the user is subject of a form of backup, the user is then always able to restore his/her crontab with
crontab contents-of-my-crontab