With the price of storage these days, I can’t afford to upgrade my array.

  • cojo5@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    ·
    9 hours ago

    you could use the touch command for that, as long as you don’t need an accurate date stamp on it

    • tal@lemmy.today
      link
      fedilink
      English
      arrow-up
      7
      ·
      8 hours ago

      Most filesystems you’ll use under Linux have not just a last modified time (mtime), which is what touch defaults to changing, but also a last-accessed time (atime) that the kernel will already be recording.

      Try running stat on a file and it’ll show the atime.

      find can search for files that haven’t been accessed more-recently than a given time with the -atime option.