ODOC: touch

Friday, November 11, 2005

touch - Change File Timestamps

Summary :

Update the access and modification times of each FILE to the current time. Also used to create a file.

Examples :
$ touch myfile -- change the time stamp to current time. If myfile is not there then touch will create it.

$ touch -c myfile -- Same as above. But If myfile is not there, then it won't create it.

$ touch -r f1 f2 -- Set f1's time to f2 instead of current time

$ touch -a myfile -- Change only access time.

$ touch -m myfile -- change only the modification time

$ touch -t 200412251122.33 -- set this time instead of current time

$ ls -lu myfile -- Shows the last access time
Read : man touch

comments links to this post Listen to this article Listen to this article


Post a Comment

Links to this post:

Create a Link

<< Home

Previous Posts

referer referrer referers referrers http_referer

  • Subscribe to Free Software Blog
  • Google
  • Subscribe in Yahoo
  • Subscribe
in Bloglines
  • Link to Podcast

(RSS feed) for this blog
    Computers Blog Top Sites
  • Computers Blogs by Indian Bloggers
  • BLogstreet Profile