mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Added commands to change a file's date metadata
This commit is contained in:
12
knowledge base/touch.md
Normal file
12
knowledge base/touch.md
Normal 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'
|
||||
```
|
||||
Reference in New Issue
Block a user