元数据节点号
[root@centos8 ~]# touch /data/a.txt [root@centos8 ~]# stat /data/a.txt File: /data/a.txt Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 803h/2051d Inode: 134 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Context: unconfined_u:object_r:etc_runtime_t:s0 Access: 2021-03-02 03:52:11.122969671 +0800 Modify: 2021-03-02 03:52:11.122969671 +0800 Change: 2021-03-02 03:52:11.122969671 +0800 Birth: - [root@centos8 ~]# touch /data/b.txt [root@centos8 ~]# stat /data/b.txt File: /data/b.txt Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 803h/2051d Inode: 135 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Context: unconfined_u:object_r:etc_runtime_t:s0 Access: 2021-03-02 03:52:45.813969593 +0800 Modify: 2021-03-02 03:52:45.813969593 +0800 Change: 2021-03-02 03:52:45.813969593 +0800 Birth: - [root@centos8 ~]#
使用
ll -i /data/可以看详细列表所有的文件的节点号
[root@centos8 ~]# ll -i /data/ total 0 134 -rw-r--r--. 1 root root 0 Mar 2 03:52 a.txt 135 -rw-r--r--. 1 root root 0 Mar 2 03:52 b.txt