Previous Section  < Day Day Up >  Next Section

touch—updates access time and/or modification time of a file


touch [ –amc ] [ mmddhhmm [ yy ] ] filename...


touch causes the access and modification times of each argument to be updated. The filename is created if it does not exist. If no time is specified the current time is used.

Example A.61.

touch a b c


EXPLANATION

Three files, a, b, and c are created. If any of them already exist, the modification time-stamp on the files is updated.

    Previous Section  < Day Day Up >  Next Section