Linux使用inode修改文件夹名称

参考:Moving or rename files and directory using Linux mv command - Basic Linux Command.

[root@fedora ~]# ls -i

648389 anaconda-ks.cfg 97315 example-directory 1847716 install.log.syslog

97582 Desktop 1847715 install-fedora.log 648395 X.txt
[root@fedora ~]# find . -inum 97315 -exec mv {} new-directory-name \;

find: ./example-directory: No such file or directory
[root@fedora ~]# ls -i

648389 anaconda-ks.cfg 1847715 install-fedora.log 97315 new-directory-name

97582 Desktop 1847716 install.log.syslog 648395 X.txt