Added commands to change a file's date metadata

This commit is contained in:
Michele Cereda
2023-01-08 13:24:18 +01:00
parent 1561d3945b
commit 0011256293
2 changed files with 27 additions and 0 deletions

12
knowledge base/touch.md Normal file
View File

@@ -0,0 +1,12 @@
# Touch
1. [TL;DR](#tldr)
## TL;DR
```sh
# Change the access and modification date of files.
# End the time with 'Z' to specify the new time is UTC instead of local time.
touch -cd '2017-08-15T13:28:42' '20170815_132842.mp4'
touch -cd '2017-08-15T12:28:42Z' '20170815_132842.mp4'
```