1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 17:13:50 +02:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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