chmod and file timestamp

  • Follow


Maybe this is a silly question, and I sort of feel I should know the 
answer, but...  why doesn't chmod in solaris change the time stamp of a 
file when you do an ls?

How can I determine the time a file was chmod'd ?

Thanks :)

Michelle
0
Reply Michelle 9/5/2008 2:26:38 PM

Michelle wrote:
> Maybe this is a silly question, and I sort of feel I should know the 
> answer, but...  why doesn't chmod in solaris change the time stamp of a 
> file when you do an ls?
> 
> How can I determine the time a file was chmod'd ?
> 
> Thanks :)
> 
> Michelle

oh I think ls -lac works
0
Reply Michelle 9/5/2008 2:29:23 PM


In article <7nbwk.545$yS5.22@edtnps83>, Michelle <newsgrps0001@mst.ca> 
wrote:

> Michelle wrote:
> > Maybe this is a silly question, and I sort of feel I should know the 
> > answer, but...  why doesn't chmod in solaris change the time stamp of a 
> > file when you do an ls?
> > 
> > How can I determine the time a file was chmod'd ?
> > 
> > Thanks :)
> > 
> > Michelle
> 
> oh I think ls -lac works

There are three times tracked by the file's inode on UFS file 
systems--ctime (time since the file's inode was changed), mtime (time 
since the file was last modified), and atime (time since the file was 
last accessed).  By default, ls show the time last modified.  As you've 
found out, it can also show other times.  Filesystems can be mounted 
with noatime to prevent atime from being updated with can be a 
performance hit on high-volume filesystems.  Note there is no place 
where UNIX tracks the date/time a file was created.

-- 
DeeDee, don't press that button!  DeeDee!  NO!  Dee...
[I filter all Goggle Groups posts, so any reply may be automatically by ignored]


0
Reply Michael 9/5/2008 7:25:25 PM

2 Replies
673 Views

(page loaded in 0.066 seconds)

Similiar Articles:












7/20/2012 8:32:16 PM


Reply: