touch: update page (#12789)

Co-authored-by: Juri Dispan <juri.dispan@posteo.net>
This commit is contained in:
licon
2024-05-15 18:45:04 +08:00
committed by GitHub
parent 60254aaf72
commit 7c98778e5f

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 ...}}`