Touch command tips and tricks

Changing modification time using touch:

touch -d '-4 day' filename
touch -d '-4 hour' filename
touch -d "30 days ago" filename

Setting Timestamp :

touch -t 201606101712 filename

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.