Wazaterm » Linux Commands » date

How to use date Linux command

The date command is to display the current time in the given FORMAT or set the system date.

Usage

Show unixtime

    
      $ date +%s
    
  

Show date with ISO8601 format

    
      $ date --iso-8601="seconds"
    
  

Show date with YYYYDDMM format

    
      $ date '+%Y%m%d'