TOUCH(1)
๐
touch(1) โ the touch manual, bestie edition
okay so welcome to touch, from the User Commands girlies โจ this is the one where you gently poke a file and it wakes up with a brand new timestamp. iconic behavior honestly.
๐ธ NAME
touch โ create a file, or change file timestamps. that's it, that's the job ๐
โจ SYNOPSIS
touch [OPTION]... FILE...
๐ DESCRIPTION
Bestie. What touch does is it updates the access and modification times of each FILE to the current time. every single one. no cap.
If a FILE argument doesn't exist yet? It gets created empty. cute, right? ๐ฆ except โ if you passed -c or -h, it will NOT do that. it simply refuses, respectfully.
And here's a little secret: if a FILE argument is literally the string -, it's handled specially, and it causes touch to change the times of the file associated with standard output. yes fr fr, that's a thing.
Also, important note before we go any further: mandatory arguments to long options are mandatory for short options too. so don't skip 'em ๐
๐ OPTIONS (they're in this section, iykyk)
-aโ change only the access time.-c,--no-createโ do not create any files. like, at all. zero. none. ๐-d,--date=STRINGโ parse STRING and use it instead of the current time.-fโ (ignored). yeah it literally does nothing. it's just... there. a decorative queen ๐-h,--no-dereferenceโ affect each symbolic link itself instead of any file it references; this is useful only on systems that can actually change the timestamps of a symlink.-mโ change only the modification time.-r,--reference=FILEโ use this file's times instead of the current time. stealing timestamps, we love to see it ๐-t [[CC]YY]MMDDhhmm[.ss]โ use the specified time instead of the current time, with a date-time format that differs from-d's.--time=WORDโ specify which time to change: access time (-a):'access','atime','use'; modification time (-m):'modify','mtime'.--helpโ display this help and exit. your bestie when you're lost ๐ซถ--versionโ output version information and exit.
๐ DATE STRING
The --date=STRING is a mostly free format human readable date string. like, she's flexible. she contains multitudes. for example:
"Sun, 29 Feb 2004 16:21:42 -0800""2004-02-29 16:21:42"- or even
"next Thursday"๐ญ
A date string may contain items indicating calendar date, time of day, time zone, day of week, relative time, relative date, and numbers.
An empty string indicates the beginning of the day. yes, the whole entire beginning of the day. periodt.
The date string format is more complex than is easily documented here โ but it is fully described in the info documentation. so go read that if you want the deep lore ๐
๐ AUTHOR
Written by Paul Rubin, Arnold Robbins, Jim Kingdon, David MacKenzie, and Randy Smith. absolute legends, every one of them ๐
๐ REPORTING BUGS
Report bugs to: <bug-coreutils@gnu.org>. Report any translation bugs to: <https://translationproject.org/team/>. GNU coreutils home page: <https://www.gnu.org/software/coreutils/> General help using GNU software: <https://www.gnu.org/gethelp/>
โญ COPYRIGHT
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. like, none. zero. don't come for us ๐ญ
๐ฆ SEE ALSO
- Full documentation <https://www.gnu.org/software/coreutils/touch>
- or available locally via:
info '(coreutils) touch invocation'
and that's the whole page bestie!! ๐ this was GNU coreutils 9.12, dated September 2026 โ so if you're reading this from the future, hi, hope the timestamps are all correct. mwah ๐ โจ๐
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms