Search This Blog

Tuesday, May 5, 2009

touch command in Linux

In the post for Compressing files in Linux, I had faced a situation where i could not run a file because I had changed the system date to a future date and accessed this file too many times. Here I found this very convenient feature.

touch command in Linux...

Ex. sudo touch /var/log/cups/access_log

By doing this you are resetting the access and modification times of each file to current time stamp.

Hope this helps you...
Cheers.

No comments: