[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Show directory time as the latest time of the file in the directory
Re: Show directory time as the latest time of the file in the directory (including subdirs)
Wed, 29 Jan 2020 15:22:59 -0500
It sounds like they want the access time of the directory to be
changed to reflect changes in subdirectories as well as the current
directory, which is more a vfs issue than anything coreutils related.
Regardless I doubt the kernel filesystem code is going to be change
anytime soon to provide this kind of update to directory atime (which
would presumably go all the way up to the filesystem root).
On Wed, Jan 29, 2020 at 3:13 PM address@hidden
> On 2020-01-29 09:08-0600, Peng Yu wrote:
> > No. -t just shows the time of the directory itself. I want a summary
> > time which is the latest time of all the contents (including the ones
> > in the subdirecties, subsubdirs,...) in the directory.
> I'm not entirely sure I understand the question, but is that what you're
> find . -printf '%T+\t%p\n'
> It's highly likely that I missed what you're after, could you give an
> example of current ls output and what you're expecting?
> Best regards,
> Ed http://www.s5h.net/