Operating System - HP-UX
1753909 Members
8261 Online
108810 Solutions
New Discussion юеВ

What is the timing of home directory's time stamp changing?

 
Chen Yingjie
Frequent Advisor

What is the timing of home directory's time stamp changing?

As above subject mentioned, I would like to ask someone advise me.

When create a home directory, its time stampe is the mkdir date/time.

When we create a file in that home directory, will the home directory's time stamp be changed?

Regards
4 REPLIES 4
KapilRaj
Honored Contributor

Re: What is the timing of home directory's time stamp changing?

Yes

Regds,

Kaps
Nothing is impossible
SureshKumar_2
Valued Contributor

Re: What is the timing of home directory's time stamp changing?

Hi

Yes, certainly It will get change. Since it has to be updated, with new file and inode entry

regards
suresh
Things are very easy, when u know about it...
Michael Tully
Honored Contributor

Re: What is the timing of home directory's time stamp changing?

Yes.

When a file is created, the date/time of the directory above it will change. If you have a sub-directrory below and a file is added etc the top level directory does not.

e.g.
/home/myhomedir
I copy a file there, yes directory gets updated.
/home/myhomedir/scripts
If I copy a file there, onlt the scripts directory date/time changes, not /home/myhomedir
Anyone for a Mutiny ?
Mark Grant
Honored Contributor

Re: What is the timing of home directory's time stamp changing?

As implied above, anything that requires the directory to change will update the time stamp. A directory is just a file which contains a filenames and inode numbers. Creating a file in the directory, removing a file, "mv"ing a file all require the entry in the directory for that file to be modified and therefore the timestamp.
Never preceed any demonstration with anything more predictive than "watch this"