i节点号。这个可以通过ls命令的-i选项获得得。
41697812 a 32983551 di 32983554 ethnet.c 32983543 hard_link
32983542 de.c 32983544 ethnet 32983541 ethnet.h 32983543 kstat
常用的文件管理命令进行文件管理了。例如,如果要删除di文件,命令如下:
-bash-3.00$ find . -inum 32983551 -exec rm {} \;
-bash-3.00$ ls
a de.c ethnet ethnet.c ethnet.h hard_link kstat
但是道理是一样的,不影响我们的理解。
-bash-3.00$ ls -i
32983542 de.c 32983554 ethnet.c 32983543 hard_link 32983545 kstat.c
32983544 ethnet 32983541 ethnet.h 32983543 kstat 32983681 sys_link
-bash-3.00$ find . -inum 32983542 -exec mv {} di.c \;
-bash-3.00$ ls -i
32983542 di.c 32983554 ethnet.c 32983543 hard_link 32983545 kstat.c
32983544 ethnet 32983541 ethnet.h 32983543 kstat 32983681 sys_link
-exec选项执行mv命令的时候,会利用按i节点号找到的文件名替换掉“{}”