Jack is configuring the /etc/logrotate.d/ntp file to customize logging from the Network Time Protocol daemon on his system. He wants the archived logs to be saved using the current date in the file name extension. Which directive in the ntp file will help him accomplish this?
  1. notifempty
  2. rotate
  3. dateext
  4. create
Explanation
Answer - C - The dateext file in the ntp file will help him save the old archived logs using the current date in the file name extension.

Key Takeaway: The dateext directive will cause old, archived log files to be saved using the current date in the file name extension. The old versions of log files which are to be archived use a YYYYMMDD format for naming.
Was this helpful? Upvote!
Login to contribute your own answer or details

Top questions

Related questions

Most popular on PracticeQuiz