Published - 6 years ago ( Updated - 6 years ago )
The command is different on MacOS or Linux, but can achieve the same effect.
Let's see how to display yesterday's date with the date command.
On MacOS, we pass the following command:
On Linux:
Let's see how to display yesterday's date with the date command.
On MacOS, we pass the following command:
date -v -1d +'%Y-%m-%d'
On Linux:
date -d 'yesterday' +'%Y-%m-%d'
No Comment
Post your comment