O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

touch

Updates a file's modification time

touch [options] file-list

The touch utility updates the time a file was last accessed and the time it was last modified and also allows you to specify these times on the command line. This utility is frequently used with make.

Arguments

The file-list contains the pathnames of the files touch is to update.

Options

When you do not specify the -c option, touch creates files that do not already exist. If touch is used without the -d or -t options, touch uses the current date and time.

--date datestring

-d datestring Updates times with the date specified by datestring. Most familiar formats are permitted for datestring. Components of the date and time not included in datestring are assumed to be the current ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required