date +%d%m%Y
Example:
mv file.txt /backups/file-`date +%d%m%Y`.txt
Format (Year, Month, Day, Hours 24, Minutes, Seconds) Y,m,d,H,M,S
Tags linux command
Back