How can I change the date modified/created of a file?


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: stat fileName.ext

See: touch man

shareimprove this answer

command-line – what is the purpose of “&&”?

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

shareimprove this answer

What does “&” at the end of a linux command mean?

The & makes the command run in the background.

From man bash:

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.

shareimprove this answer