Answers for "how to change date of file in linux"

0

how to change date of file in linux

/*how to change date of file in linux*/
touch -a -m -t 201512180130.09 fileName.ext

-a = accessed
-m = modified
-t = timestamp - use [[CC]YY]MMDDhhmm[.ss] time format
Posted by: Guest on April-06-2021
0

linux change date and then change files ctime

$ NOW=$(date) && date -s "2030-08-15 21:30:11" && touch file.txt && date -s "$NOW"
Posted by: Guest on December-14-2020

Code answers related to "how to change date of file in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language