Linux Command - touch
touch - touch a file
- changes access and modification times of a file to current time
- creates the file if it doesn’t exist
touch -r /etc/hosts test.py
| -a | only change access time |
| -c | don’t create |
| -d | specify a date |
| -m | only change modification time |
| -r | use time of this file instead of current time |
| -t | STAMP specify time stamp like this: [[CC]YY]MMDDhhmm[.ss] |
| –time | also can be used to change the time … |
| -d | parse a free format date string ex: “Sun, 29 Feb 2004 16:21:42 -0800” |