Home >Operation and Maintenance >CentOS >Garbled folder name under centos system

Garbled folder name under centos system

王林
王林Original
2020-03-21 13:47:461934browse

Garbled folder name under centos system

Solution:

1. Install convmv

[root@openstack-manager-h1 chesunexcelfiledevimage]# yum install convmv

2. Batch recursively modify the file names in the current directory (recommended tutorial: centos usage tutorial)

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

convmv Usage method:

convmv -f 源编码 -t 新编码 [选项] 文件名

Parameters:

-r Recursively process subfolders

–notest Really perform the operation. By default, the file will not be operated.

Recommended related video tutorials: linux video tutorial

The above is the detailed content of Garbled folder name under centos system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn