mirror of
https://github.com/sahinakkaya/til.git
synced 2024-11-14 04:59:38 +01:00
295 B
295 B
You can use touch
to change modification date or time of a file:
touch -d 20210703 filename
# Set the times on a file to a specific date and time:
touch -t YYYYMMDDHHMM.SS filename
or use the times from a file to set the times on a second file:
touch -r filename filename2