我在HPC服务器的暂存驱动器上有一些文件.服务器会自动删除两周前的文件.
使用stat filename.txt
,我可以看到以下信息.有没有办法以某种方式打开/touch /操作文件来更新Access
日期,以防止删除而不实际更改文件?
File: ‘name’
Size: 2583438768 Blocks: 4819945 IO Block: 524288 regular file
Device: xxh/xxxd Inode: 10354xxxx Links: 1
Access: (/-rw-r--r--) Uid: (/) Gid: (/)
Context: system_u:object_r:tmp_t:s0
Access: 2022-11-22 09:47:33.000000000 -0800
Modify: 2019-12-06 06:50:33.000000000 -0800
Change: 2022-11-22 16:54:55.000000000 -0800
Birth: -