Since the conversion of the two linux tools convmv and iconv to the ubuntu platform, the file names of a large number of mp3 files that were originally stored Under SUSE have been garbled, today, I found two linux tools convmv and iconv on the Internet. Convmv is a tool used to change the file name encoding method. For example, sudo convmv-f gbk-t UTF-8-r-notest/home www.2cto.com changes all the original file names in the/home directory in gbk encoding mode to UTF-8 format. Here-f is followed by the original encoding method,-t is followed by the encoding method to be changed,-r indicates all the files under this directory, and-notest indicates immediate execution, instead of just testing. In addition, this command seems to have to be executed by root, so sudo should be added. Iconv is a tool used to change the file encoding method: sudo iconv-f gbk-t UTF-8-o outfile infile-f is the original encoding method, and-t is the encoding method of the output file, -o indicates the output file name, which is represented by outfile and followed by the file name sourcefile to change the encoding method. These two tools finally solve the problem of garbled Chinese files.