Linux: Get the Day before Current Date in Bash

[sourcecode language=”bash”]user@linux:~$ date +%F -d "yesterday"[/sourcecode]
or
[sourcecode language=”bash”]user@linux:~$ date +%F -d "1 day ago"[/sourcecode]
or
[sourcecode language=”bash”]user@linux:~$ date +%F -d "-1 day"[/sourcecode]
or
[sourcecode language=”bash”]user@linux:~$ date +%F –date="-1 day"[/sourcecode]

Description:
%F
full date; same as %Y-%m-%d

-d, –date=STRING
display time described by STRING, not `now’