Rocky Linuxでファイルのアクセス日時、変更日時を確認

2021年11月24日

環境
# cat /etc/redhat-release
Rocky Linux release 8.4 (Green Obsidian)

書式
stat ファイル名

操作例
# stat test01.php

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
File: test01.php
Size: 46 Blocks: 8 IO Block: 4096 通常ファイル
Device: fd00h/64768d Inode: 34523259 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-10-20 14:24:11.387718221 +0900
Modify: 2021-10-20 14:24:07.618762998 +0900
Change: 2021-10-20 14:24:07.618762998 +0900
Birth: -
File: test01.php Size: 46 Blocks: 8 IO Block: 4096 通常ファイル Device: fd00h/64768d Inode: 34523259 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2021-10-20 14:24:11.387718221 +0900 Modify: 2021-10-20 14:24:07.618762998 +0900 Change: 2021-10-20 14:24:07.618762998 +0900 Birth: -
  File: test01.php
  Size: 46              Blocks: 8          IO Block: 4096   通常ファイル
Device: fd00h/64768d    Inode: 34523259    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2021-10-20 14:24:11.387718221 +0900
Modify: 2021-10-20 14:24:07.618762998 +0900
Change: 2021-10-20 14:24:07.618762998 +0900
 Birth: -

結果説明
Access 最終アクセス時刻
Modify 最終更新時刻
Change 最終ステータス変更時刻
Gid:グループID/グループ名
Uid:ユーザーID/ユーザ名

Rocky Linux 8

Posted by arkgame