File Name/file content encoding conversion in linux 1. View file encoding in Linux Command Line enca file name www.2cto.com file name 2. Bulk conversion of linux file Name encoding convmv-f source encoding-t new encoding [option] common file name parameters: -r recursively processes subfolders-notest for actual operations. Note that by default, the actual operations on files are not performed, but only experiments are performed. -List shows all supported encodings-unescap can be used for escape. For example, % 20 is converted into a space. For example, we have a UTF-8 encoded file name and converted it into GBK encoding. The command is as follows: convmv-f UTF-8-t GBK -- notest utf8 encoding file name 3, Linux File Content Encoding batch conversion www.2cto.com 1. use enca. For example, convert all files in the current directory to UTF-8 $ enca-x UTF-8 * 2. Use iconv to convert iconv to the following command format: iconv-f encoding-t encoding inputfile for example converting a UTF-8-encoded file into GBK-encoded iconv-f GBK-t UTF-8 file1-o file2