[glug-t] One Day One GNU/Linux Command (TOUCH)
- From: Bharathi Subramanian <sbharathi@xxxxxxxxxxxxx>
- To: GNU/Linux User Group of TCE <glugot@xxxxxxxxxxxxx>, GNU/Linux Users Group - Trichy <glug_t@xxxxxxxxxxxxx>, VEC-FOSS <vecfoss@xxxxxxxxxxxxxxxx>
- Date: Mon, 12 May 2008 11:27:47 +0530 (IST)
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 send a mail to glug_t-request@xxxxxxxxxxxxx with
'unsubscribe' as subject.
Website: http://glugt.linuxisle.com
Other related posts:
- » [glug-t] One Day One GNU/Linux Command (TOUCH)