bash date offset code example Example: date linux minus 1 day $ date +%Y:%m:%d -d "1 day ago" 2009:11:09