>_ IzzyLab

Topic breakdown

The -d (--date) option makes date compute not the current moment but the one described by a string: it understands relative expressions (5 days ago, 2 weeks, tomorrow, next friday) and absolute dates. By combining -d with a format (+%F), you get the date in the form you need without doing manual arithmetic around leap years and month boundaries. This is a standard technique in log-rotation scripts and deadline calculations.

What's checked

  1. the date 5 days earlier

What it looks like