1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 17:17:57 +01:00
tldr/pages/common/touch.md
2015-10-23 08:02:34 +08:00

16 lines
406 B
Markdown

# touch
> Change a file access and modification times (atime, mtime)
- Create a new empty file(s) or change the times for existing file(s) to current time.`
`touch {{filename}}`
- Set the times on a file to those specified
`touch -t 201412250801.59 {{filename}}
`touch -t {{YYYYMMDDHHMM.SS}} {{filename}}
- Set the times on a file to match those on second file
`touch -r {{filename2}} {{filename}}`