Files
oam/knowledge base/touch.md
2023-07-09 21:35:14 +02:00

15 lines
344 B
Markdown

# The `touch` command
## Table of contents <!-- omit in toc -->
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'
```