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