LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 02-19-2006, 09:50 PM   #1
RajRed
Member
 
Registered: Mar 2005
Posts: 66

Rep: Reputation: 15
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.
 
Old 02-19-2006, 10:15 PM   #2
truthfatal
Member
 
Registered: Mar 2005
Location: Winnipeg, MB
Distribution: Raspbian, Debian, Slackware, OS X
Posts: 443
Blog Entries: 9

Rep: Reputation: 32
I use "touch"
Code:
$man touch
 
Old 02-20-2006, 12:49 PM   #3
RajRed
Member
 
Registered: Mar 2005
Posts: 66

Original Poster
Rep: Reputation: 15
I thought 'touch' can only change the timestamp of a file not a directory. Can I 'touch' a directory?
 
Old 02-20-2006, 02:27 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,032

Rep: Reputation: 309Reputation: 309Reputation: 309Reputation: 309
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".
 
Old 02-20-2006, 05:34 PM   #5
RajRed
Member
 
Registered: Mar 2005
Posts: 66

Original Poster
Rep: Reputation: 15
ok, I will try 'touch'. Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tail Last Modified File in a Directory tyoungblood Linux - Software 3 08-12-2005 09:42 AM
redhat linux update databse's type and utility like windows update services kamii47 Linux - General 1 04-18-2005 06:50 AM
time modified when booting xround Linux - General 4 08-11-2004 10:24 AM
Get directory stats when a file has been modified? marri Programming 2 05-13-2004 09:44 PM
PHP last time modified script time way off GabeF Programming 2 11-05-2002 09:05 PM


All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration