R's Workshop

Linux Timestamp: atime, mtime, ctime

Linux 的檔案有三個 timestamp:

Check File Timestamp

在 user space 可以用 stat 指令確認 file 的 timestamp. Kernel 會將上述三個 timestamp 放在 struct stat 回傳.

$ stat [FILE]

Update Timestamp by System Calls

下列 system calls 會更新 timestamps:

Reference

Linux