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