Frequent Question: How Can I Get Previous Date in Linux?
Contents How Do I Find the Previous Date in Unix? in Order to Get 1 Day Back Date Using Date Command: Date -v -1D It Will Give (Current Date -1) Means 1 Day...
Contents
How do I find the previous date in Unix?
In order to get 1 day back date using date command: date -v -1d It will give (current date -1) means 1 day before . date -v +1d This will give (current date +1) means 1 day after.
Must Read
How do I get previous month in Linux?
How to get first date of last month and last date of last month in Linux or Bash – Quora. First day of month is always the first, so it is easy: $ date -d “month ago” “+%Y/%m/01”