Linux - date

> Procedural Languages > Bash Shell and (Unix|Linux) Utilities (XCU)

1 - Example

1.1 - ISO 8601

Format Time - Date String Format (ISO 8601)

date -u +"%Y-%m-%dT%H:%M:%SZ"
Advertising

1.2 - In a file name

mv OPatch OPatch.bkp_$(date -u +"%Y-%m-%d.%H:%M")
 
# or
date -u +"%Y-%m-%d_%H.%M.%S"