touch: update page (#12789)

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
pull/28/head
licon 2024-05-15 18:45:04 +08:00 committed by GitHub
parent 60254aaf72
commit 7c98778e5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -15,6 +15,6 @@
`touch -c -t {{YYYYMMDDHHMM.SS}} {{path/to/file1 path/to/file2 ...}}`
- Set the file time of a specific file to the time of anothe[r] file and don't [c]reate file if it doesn't exist:
- Set the files' timestamp to the [r]eference file's timestamp, and do not [c]reate the file if it does not exist:
`touch -c -r {{~/.emacs}} {{path/to/file1 path/to/file2 ...}}`
`touch -c -r {{path/to/reference_file}} {{path/to/file1 path/to/file2 ...}}`