Touch All Mac OS
Change file timestamps. Sets the modification and access times of files to the current time of day. If the file doesn't exist, it is created with default permissions.
Shop for Mac OS All Laptops at Best Buy. Find low everyday prices and buy online for delivery or in-store pick-up. SPONSOR: Go to and sign up for free. First 200 people get 20% the premium course!It’s 2018. Why don’t we have multitouch screen M.
The obsolescent form of touch, where a time format is specified as the first argument, is supported.
When no -r or -t option is specified, there are at least two arguments, and the first argument is a string of digits either eight or ten characters in length, the first argument is interpreted as a time specification of the form 'MMDDhhmm[YY]'. The 'MM', 'DD', 'hh' and 'mm' letter pairs are treated as their counterparts specified to the -t option.

If the 'YY' letter pair is in the range 39 to 99, the year is set to 1939 to 1999, otherwise, the year is set in the 21st century.
Exits 0 on success, and >0 if an error occurs.
Examples
Create/datestamp a file called sample.txt:
touch sample.txt
or in a subfolder:
touch 'some folder/sample.txt'
Create a file sample.txt dated as 1958-12-31@14:30:
touch -t 195812311430 sample.txt
Using brace expansion, create/datestamp 10 files called project1, project2 etc:
touch project{1,2,3,4,5,6,7,8,9,10}
“If you play it safe you stagnate is this league.
Maybe we'll bust, but if we hit it, we'll hit it big” ~ Jimmy Johnson, coach of the Miami Dolphins
Related macOS commands:
chgrp - Change group ownership.
chmod - Change access permissions.
chown - Change file owner and group.
date - Display or change the date.
mkdir - Create new folder(s).
which - Show full path of commands.
Some rights reserved