Skip to content

Instantly share code, notes, and snippets.



Last active Jun 13, 2018
What would you like to do?
Change the creation and modification date of a file.
# chmod 755
# ./ my_edited_photo.jpg 201504010000
# $1 = filename.
# $2 = date in YYYYMMDDhhmm.
echo "Changing the creation date of file: $1 to date: $2"
touch -t $2 $1 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.