在最近的操作中发现一些上传的文件有乱码,更改几次都无法正常转换到中文。下面给出正确的解决方案:

使用 ls -i 或者 ls -inum 查找出文件id号(红色字体)

[root@localhost home]# ls -i
260615 epel-release-latest-6.noarch.rpm 273780 test.txt
[root@localhost home]# ls -inum
273780 test.txt, 260615 epel-release-latest-6.noarch.rpm
[root@localhost home]#

 

结合find命令删除

[root@localhost home]# find -inum 273780 -exec rm -rf {} \;
[root@localhost home]# ls
epel-release-latest-6.noarch.rpm

删除成功

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-24
  • 2021-08-13
  • 2021-05-27
  • 2021-08-24
  • 2021-10-08
  • 2021-10-22
相关资源
相似解决方案