LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   utility to update the last modified time of a directory (http://www.linuxquestions.org/questions/linux-newbie-8/utility-to-update-the-last-modified-time-of-a-directory-417336/)

RajRed 02-19-2006 08:50 PM

utility to update the last modified time of a directory
 
Is there an utility or by any methods to update (change) the last modified time of a linux directory?

Thanks.

truthfatal 02-19-2006 09:15 PM

I use "touch"
Code:

$man touch

RajRed 02-20-2006 11:49 AM

I thought 'touch' can only change the timestamp of a file not a directory. Can I 'touch' a directory?

haertig 02-20-2006 01:27 PM

Quote:

Originally Posted by RajRed
I thought 'touch' can only change the timestamp of a file not a directory. Can I 'touch' a directory?

Of course. In Linux/Unix, "everything is a file".

RajRed 02-20-2006 04:34 PM

ok, I will try 'touch'. Thanks.


All times are GMT -5. The time now is 09:43 PM.