touch Command Examples

Create files and set access/modification times. More information: https://manned.org/touch.

touch {{path/to/file1 path/to/file2 ...}}

touch -c -{{a|m}} {{path/to/file1 path/to/file2 ...}}

touch -c -t {{YYYYMMDDHHMM.SS}} {{path/to/file1 path/to/file2 ...}}

touch -c -r {{path/to/reference_file}} {{path/to/file1 path/to/file2 ...}}