preload preload preload preload

Linux Date Command Option

Date command options.

Date command to get the current date.

$ date=$(date +%Y-%m-%d)
$ echo $date

Date command to get yesterday’s date.

$ date=$(date --date=yesterday +%Y-%m-%d)
$ echo $date

Date command to get tomorrow’s date.

$ date=$(date --date=tomorrow +%Y-%m-%d)
$ echo $date
  • Share/Bookmark
  • Leave a Reply

    * Required
    ** Your Email is never shared