Where are user specific crontabs stored?
Click on the arrows to vote for the correct answer
A. B. C. D. E.B
User specific crontabs are used to schedule tasks that need to be run at specific times on Linux systems. These tasks can be anything from backups to automatic updates, and they are managed by the cron daemon.
Each user on a Linux system can have their own crontab, and these crontabs are stored in a specific location. Let's go through each answer option and explain if it is correct or not:
A. In the database file /etc/crontab.db which is shared by all users. This option is not correct. The /etc/crontab file is a system-wide crontab file that applies to all users. It is not specific to any one user.
B. As individual per-user files within /var/spool/cron. This option is correct. User-specific crontab files are stored in the /var/spool/cron directory. Each user has their own file in this directory, named after their username.
C. As individual per-user files in /etc/cron.user.d. This option is not correct. There is no such directory as /etc/cron.user.d. The correct directory for user-specific crontabs is /var/spool/cron.
D. In the .crontab file in the user's home directory. This option is not correct. There is no such file as .crontab in a user's home directory. The correct location for user-specific crontabs is /var/spool/cron.
E. In the file /var/cron/user-crontab which is shared by all users. This option is not correct. There is no such file as /var/cron/user-crontab. User-specific crontabs are stored in individual files in the /var/spool/cron directory.
Therefore, the correct answer is B, as individual per-user files within /var/spool/cron.