Debian Codegraph @

upstream/debian-unstable/man1/touch.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
2 .TH TOUCH "1" "February 2026" "GNU coreutils 9.10" "User Commands"
3 .SH NAME
4 touch \- create file, or change file timestamps
5 .SH SYNOPSIS
6 .B touch
7 [\fI\,OPTION\/\fR]... \fI\,FILE\/\fR...
8 .SH DESCRIPTION
9 .\" Add any additional description here
10 .PP
11 Update the access and modification times of each FILE to the current time.
12 .PP
13 A FILE argument that does not exist is created empty, unless \fB\-c\fR or \fB\-h\fR
14 is supplied.
15 .PP
16 A FILE argument string of \- is handled specially and causes touch to
17 change the times of the file associated with standard output.
18 .PP
19 Mandatory arguments to long options are mandatory for short options too.
20 .TP
21 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#touch-a'\fB\-a\fP\X'tty: link'
22 change only the access time
23 .TP
24 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#touch-c'\fB\-c, \-\-no\-create\fP\X'tty: link'
25 do not create any files
26 .TP
27 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#touch-d'\fB\-d, \-\-date=\,STRING\fP\X'tty: link'\/\fR
28 parse STRING and use it instead of current time
29 .TP
30 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#touch-f'\fB\-f\fP\X'tty: link'
31 (ignored)
32 .TP
33 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#touch-h'\fB\-h, \-\-no\-dereference\fP\X'tty: link'
34 affect each symbolic link instead of any referenced file;
35 useful only on systems that can change the timestamps of a symlink
36 .TP
37 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#touch-m'\fB\-m\fP\X'tty: link'
38 change only the modification time
39 .TP
40 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#touch-r'\fB\-r, \-\-reference=\,FILE\fP\X'tty: link'\/\fR
41 use this file's times instead of current time
42 .TP
43 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#touch-t'\fB\-t [[CC]YY]MMDDhhmm[.ss]\fP\X'tty: link'
44 use specified time instead of current time,
45 with a date\-time format that differs from \fB\-d\fR's
46 .TP
47 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#touch--time'\fB\-\-time=WORD\fP\X'tty: link'
48 specify which time to change:
49 access time (\fB\-a\fR): 'access', 'atime', 'use';
50 modification time (\fB\-m\fR): 'modify', 'mtime'
51 .TP
52 \X'tty: link https://www.gnu.org/software/coreutils/touch#touch--help'\fB\-\-help\fP\X'tty: link'
53 display this help and exit
54 .TP
55 \X'tty: link https://www.gnu.org/software/coreutils/touch#touch--version'\fB\-\-version\fP\X'tty: link'
56 output version information and exit
57 .SH "DATE STRING"
58 .\" NOTE: keep this paragraph in sync with the one in date.x
59 The --date=STRING is a mostly free format human readable date string
60 such as "Sun, 29 Feb 2004 16:21:42 -0800" or "2004-02-29 16:21:42" or
61 even "next Thursday". A date string may contain items indicating
62 calendar date, time of day, time zone, day of week, relative time,
63 relative date, and numbers. An empty string indicates the beginning
64 of the day. The date string format is more complex than is easily
65 documented here but is fully described in the info documentation.
66 .SH AUTHOR
67 Written by Paul Rubin, Arnold Robbins, Jim Kingdon,
68 David MacKenzie, and Randy Smith.
69 .SH "REPORTING BUGS"
70 Report bugs to: bug\[email protected]
71 .br
72 GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
73 .br
74 General help using GNU software: <https://www.gnu.org/gethelp/>
75 .br
76 Report any translation bugs to <https://translationproject.org/team/>
77 .SH "SEE ALSO"
78 Full documentation <https://www.gnu.org/software/coreutils/touch>
79 .br
80 or available locally via: info \(aq(coreutils) touch invocation\(aq
81 .PP
82 .br
83 Packaged by Debian (9.10\-1)
84 .br
85 Copyright \(co 2026 Free Software Foundation, Inc.
86 .br
87 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
88 .br
89 This is free software: you are free to change and redistribute it.
90 .br
91 There is NO WARRANTY, to the extent permitted by law.