Use the touch
command like:
touch -t '1509260825' <path to the file>
This will set both the creation and modification date of the file to "2015-09-26 08.25".
To preserve the creation and modification dates when coping a file, use the -p
option of the cp
command like:
cp -p <path to the file> <destination path>