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