12 May 07:56
One Day One GNU/Linux Command (TOUCH)
From: Bharathi Subramanian <sbharathi@...>
Subject: One Day One GNU/Linux Command (TOUCH)
Newsgroups: gmane.org.user-groups.linux.ilugc
Date: 2008-05-12 05:57:10 GMT
Subject: One Day One GNU/Linux Command (TOUCH)
Newsgroups: gmane.org.user-groups.linux.ilugc
Date: 2008-05-12 05:57:10 GMT
One Day One GNU/Linux Command
=============================
touch - Change File Timestamps
Summary :
Update the access and modification times of each FILE to the current
time. If FILE not exist, then it will create an empty file with that
name.
Examples :
$ touch myfile -- Set the time stamp to current time.
$ touch -c myfile -- Same as above. But if myfile not exist, then
it won't create it.
$ touch -r f1 f2 -- Set f1's time to f2 instead of current time.
$ touch -r f1 -B 5 f2 -- Set f2's time to 5 secs older then f1.
$ touch -r f1 -F 5 f2 -- Set f2's time to 5 secs newer then f1.
$ 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
HTH :)
--
--
Bharathi S
_______________________________________________
To unsubscribe, email ilugc-request@... with
"unsubscribe <password> <address>"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
RSS Feed