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.63.
					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.

Get Linux Shells by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.