Unsure why access time on a directory change isn't changing


Results 1 to 2 of 2

Thread: Unsure why access time on a directory change isn't changing

  1. #1
    Join Date
    Oct 2016
    Posts
    5

    Unsure why access time on a directory isn't changing

    Hello... And thanks in advance for any help anyone can offer me

    I was trying to work out the differences between displaying modify, access, and change times with the 'ls' command. Everything seems in order when I look at files, but the access time on a directory doesn't seem to change when I expect it too.

    I'm sure I must have the concept misunderstood with a directory... But when I 'cd' to a directory like 'Downloads' or do an 'ls' to view it's contents... And then look at it's last access time with 'ls -ldu' or 'stat'... It does not change

    It has changed when I wasn't paying attention and has a date/time from yesterday... I just don't understand what would caused it to change

    Can someone straighten me out here? THANKS!
    Last edited by bodisha; 08-15-2019 at 04:53 PM.

  2. #2
    Join Date
    May 2002
    Posts
    1,254
    Look at the output of the /proc/mounts for that particular filesystem. I would guess that it is using relatime versus strictatime which is the default.

    https://www.unixtutorial.org/atime-c...ix-filesystems.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •