centos 文件夹,文件 名称乱码 解决方法

centos附件打包下载后,解压,文件以及文件夹名称显示乱码

解决方法: 
1,安装convmv 
[root@openstack-manager-h1 chesunexcelfiledevimage]# yum install convmv

2,批量 递归 修改当前目录下的文件名 

[root@openstack-manager-h1 chesunexcelfiledevimage]# convmv -f GBK -t UTF-8 -r --notest ./*
 

convmv 使用方法: 
convmv -f 源编码 -t 新编码 [选项] 文件名 
参数: 
-r 递归处理子文件夹 
–notest 真正进行操作,默认情况下是不对文件进行真实操作
 

猜你喜欢

转载自blog.csdn.net/guoshaoliang789/article/details/86082323