How can I recreate default /etc/cron.d files?
I deleted /etc/cron.d/
folder by accident.
How can I recreate it to a default state?
Solution 1:
You have to reinstall the packages with files in /etc/cron.d
by
sudo apt-get install --reinstall -o Dpkg::Options::="--force-confmiss" \
$(dpkg -S /etc/cron.d | sed 's/,//g' | awk -F: '{print $1}')