Home > Uncategorized > Using the ‘touch’ command

Using the ‘touch’ command

Create a new file using touch and modify its access time.

Set the date to Feb 1st, 2009 @ 730am.

[root@stone backups]# touch testfile2 -t 200902010730 testfile2

Verify settings..
[root@stone backups]# ls -la | grep testfile2
-rw-r–r–  1 root katze          0 Feb  1  2009 testfile2

Uncategorized

  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.