标签:char linux let nat tle linu rmi encoding 文件的
https://www.shellhacks.com/linux-check-change-file-encoding/
在某一个目录下,直接执行file *
$ file *
chucklu.autoend.js: HTML document, UTF-8 Unicode text, with very long lines, with CRLF line terminators
custom.css: UTF-8 Unicode text, with CRLF line terminators
SimpleMemory.css: UTF-8 Unicode text, with CRLF line terminators
$ file *
chucklu.autoend.js: HTML document, Little-endian UTF-16 Unicode text, with very long lines, with CRLF line terminators
custom.css: UTF-8 Unicode text, with CRLF line terminators
SimpleMemory.css: UTF-8 Unicode text, with CRLF line terminators
$ file -bi chucklu.autoend.js
text/html; charset=utf-8
$ file -bi custom.css
text/plain; charset=utf-8
-b,--brief Don’t print filename (brief mode)
-i, --mime Print filetype and encoding
标签:char linux let nat tle linu rmi encoding 文件的
原文地址:http://www.cnblogs.com/chucklu/p/6874820.html