TOUCH(1)
π TOUCH(1) β the touch glow-up π
okay bestie, welcome to the General Commands Manual, page for touch β¨ (that's the uutils one, we stan). sit down, grab a boba, and let's make your files feel seen π«Ά
β¨ NAME β¨
touch β Update the access and modification times of each FILE to the current time.
πΈ SYNOPSIS πΈ
touch [OPTION]... [FILE]...
π¦ DESCRIPTION π¦
Update the access and modification times of each FILE to the current time. that's it. that's the whole gig. it's giving "gentle lil refresh for your timestamps" and honestly? iconic behavior π
π OPTIONS π
--helpβ Print help information. your lil bestie telling you what's up π-aβ change only the access time-t <STAMP>β use[[CC]YY]MMDDhhmm[.ss]instead of the current time. yes you get to time travel fr fr π°οΈ-d,--date <STRING>β parse argument and use it instead of current time-fβ (ignored) literally just vibing in the corner. it does nothing. ignore it back π-mβ change only the modification time-c,--no-createβ do not create any files-h,--no-dereferenceβ affect each symbolic link instead of any referenced file (only for systems that can change the timestamps of a symlink)-r,--reference <FILE>β use this file's times instead of the current time--time <WORD>β change only the specified time:"access","atime", or"use"are equivalent to-a;"modify"or"mtime"are equivalent to-m
Possible values:
atimemtime
-V,--versionβ Print version[files]β the files, babe. the ones getting touched π«Ά
quick note bestie:-t <STAMP>wants the shape[[CC]YY]MMDDhhmm[.ss], and--timeonly acceptsatimeormtimefrom that list. don't freestyle it, k? π
π§ VERSION π§
v(uutils coreutils) 0.12.0
π EXAMPLES π
okay here's where you pop off. every single one, no skips, periodt.
Create specific files or update their timestamps if they already exist:
touch path/to/file1 path/to/file2 ...
Set the file [a]ccess or [m]odification times to the current one and don't create file if it doesn't exist:
touch [-c|--no-create] -a|-m path/to/file1 path/to/file2 ...
Set the file [t]ime to a specific value and don't create file if it doesn't exist:
touch [-c|--no-create] -t YYYYMMDDHHMM.SS path/to/file1 path/to/file2 ...
Set the files' timestamp to the reference file's timestamp, and do not create the file if it does not exist:
touch [-c|--no-create] [-r|--reference] path/to/reference_file path/to/file1 path/to/file2 ...
Set the timestamp by parsing a string:
touch [-d|--date] "last year|5 hours|next thursday|nov 14|..." path/to/file
Create multiple files with an increasing number:
touch path/to/file{1..10}
Create multiple files with a letter range:
touch path/to/file{a..z}
The examples are provided by the tldr-pages project https://tldr.sh under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail. π
not me warning you that some examples might fail β it's literally in the manual, bestie, uutils is a work in progress. no cap.
okay that's the whole page, you ate that π
this was the TOUCH(1) page of the General Commands Manual, version v(uutils coreutils) 0.12.0, dated 2026-09-25 β go forth and touch some files, and remember: timestamps are temporary, but main character energy is forever πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms