ファイルのアクセス時間を取得するために stat を使用しています (現在の日付は 2013 年 10 月 23 日です)。
[juan@JN-LNXSVR-02 labfiles]$ stat nursery
File: `nursery'
Size: 837 Blocks: 8 IO Block: 4096 regular file
Device: fd00h/64768d Inode: 139539 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 500/ juan) Gid: ( 500/ juan)
Access: 2013-10-22 18:03:20.703888346 -0400
Modify: 2013-10-21 16:57:07.801165793 -0400
次に、ファイルを編集して変更せずに閉じ、統計を再度送信します
juan@JN-LNXSVR-02 labfiles]$ vi nursery
[juan@JN-LNXSVR-02 labfiles]$ stat nursery
File: `nursery'
Size: 837 Blocks: 8 IO Block: 4096 regular file
Device: fd00h/64768d Inode: 139539 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 500/ juan) Gid: ( 500/ juan)
Access: 2013-10-22 18:03:20.703888346 -0400
Modify: 2013-10-21 16:57:07.801165793 -0400
Change: 2013-10-21 16:57:07.801165793 -0400
アクセス時間は変わらないのですが、なぜですか?
noatime 属性が見つかりませんでした
juan@JN-LNXSVR-02 labfiles]$ grep noatime /proc/mounts
[juan@JN-LNXSVR-02 labfiles]$
マウント コマンドの出力は次のとおりです。
[juan@JN-LNXSVR-02 labfiles]$ マウント /dev/mapper/vg_jnlnxsvr02-lv_root on / type ext4 (rw) /proc タイプ proc の proc (rw) /sys の sysfs タイプ sysfs (rw) /dev/pts の devpts type devpts (rw,gid=5,mode=620) /dev/shm 上の tmpfs タイプ tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0") /boot タイプ ext4 (rw) の /dev/sda1 なし /proc/sys/fs/binfmt_misc タイプ binfmt_misc (rw) /var/lib/nfs/rpc_pipefs の sunrpc タイプ rpc_pipefs (rw) [juan@JN-LNXSVR-02 ラボファイル]$