1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/touch.md

17 lines
406 B
Markdown
Raw Normal View History

# touch
> Change a file access and modification times (atime, mtime)
2015-12-31 14:11:18 +01:00
- Create a new empty file(s) or change the times for existing file(s) to current time
`touch {{filename}}`
2015-10-22 15:31:52 +08:00
- Set the times on a file to those specified
2015-12-31 14:11:18 +01:00
`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}}`