Results 1 to 6 of 6

Thread: Where is the crontab file?

  1. #1

    Default Where is the crontab file?

    opensuse 42.2

    "crontab -e" opens a file from somewhere to edit cron jobs.

    Does anyone know where that file is stored?

  2. #2
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,004

    Default Re: Where is the crontab file?

    /var/spool/cron/tabs/
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

  3. #3

    Default Re: Where is the crontab file?

    Thank you.

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,877

    Default Re: Where is the crontab file?

    Quote Originally Posted by jimoe666 View Post
    Thank you.
    That is nice knowledge about the internals of cron, but you should NOT edit files there with an editor.
    Henk van Velden

  5. #5

    Default Re: Where is the crontab file?

    Quote Originally Posted by hcvv View Post
    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.

  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,877

    Default Re: Where is the crontab file?

    That clarifies a lot. I only wanted to warn you.

    BTW my advice to all users to use
    Code:
    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
    Code:
    crontab contents-of-my-crontab
    Henk van Velden

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •