Easiest way – accessed modified will be the same:
touch -a -m t 201512180130.09 fileName.ext
-a = accessed
-m = modified
t = timestamp - use [[CC]YY]MMDDhhmm[.ss] time format
If you wish to use
NOW just drop the
t and the timestamp
To verify they are all the same:
See: touch man
&& lets you do something based on whether the previous command completed successfully – that’s why you tend to see it chained as
do_something && do_something_else_that_depended_on_something.
& makes the command run in the background.
If a command is terminated by the control operator &, the shell executes the command in the background in a subshell. The shell does not wait for the command to finish, and the return status is 0.