1

I deleted /etc/cron.d/ folder by accident.

How can I recreate it to a default state?

1 Answers1

3

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}') 
N0rbert
  • 99,918