Hands-on task
This task is step 4 of the course “Dates and times in the terminal”
The date five days ago
Write to /root/past.txt the date that was 5 days ago relative to today, in YYYY-MM-DD format.
Reference:date
What you'll practise:
- date
- -d
- relative dates
- days ago
- %F