touch Flashcards
1
Q
touch
A
Update the access and modification times of each FILE to the current time.
2
Q
touch
- a
- c
- d
- h
- m
- r
A
- a, Change only the access time.
- c, –no-create, Do not create any files.
- d, –date=STRING, Parse STRING and use it instead of current time.
- h, –no-deference, Affect each symbolic link instead of any referenced file.
- m, Change only the modification time.
- r, –reference=FILE, Use this file’s times instead of the current time.
3
Q
touch -t STAMP
–time=WORD
A
-t STAMP, Use [[CC]YY]MMDDhhmm[.ss] instead of current time.
–time=WORD, change specified time:
WORD is access, atime, or use equivalent to -a
WORD is modify or mtime: equivalent to -m