1TOUCH(1) User Commands TOUCH(1)
2
3
4
6 touch - change file timestamps
7
9 touch [OPTION]... FILE...
10
12 Update the access and modification times of each FILE to the current
13 time.
14
15 Mandatory arguments to long options are mandatory for short options
16 too.
17
18 -a change only the access time
19
20 -c, --no-create
21 do not create any files
22
23 -d, --date=STRING
24 parse STRING and use it instead of current time
25
26 -f (ignored)
27
28 -m change only the modification time
29
30 -r, --reference=FILE
31 use this file's times instead of current time
32
33 -t STAMP
34 use [[CC]YY]MMDDhhmm[.ss] instead of current time
35
36 --time=WORD
37 change the specified time: WORD is access, atime, or use: equiv‐
38 alent to -a WORD is modify or mtime: equivalent to -m
39
40 --help display this help and exit
41
42 --version
43 output version information and exit
44
45 Note that the -d and -t options accept different time-date formats.
46
47 If a FILE is -, touch standard output.
48
50 Written by Paul Rubin, Arnold Robbins, Jim Kingdon, David MacKenzie,
51 and Randy Smith.
52
54 Report bugs to <bug-coreutils@gnu.org>.
55
57 Copyright © 2007 Free Software Foundation, Inc.
58 This is free software. You may redistribute copies of it under the
59 terms of the GNU General Public License
60 <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the
61 extent permitted by law.
62
64 The full documentation for touch is maintained as a Texinfo manual. If
65 the info and touch programs are properly installed at your site, the
66 command
67
68 info touch
69
70 should give you access to the complete manual.
71
72
73
74GNU coreutils 6.9 March 2008 TOUCH(1)