Linux 下面查看文件的格式

时间: 2010-01-26 / 分类: Ubuntu / 浏览次数: 6 views / 0个评论 发表评论

在命令下面打入:
file filename
就会出来文件的格式。

如:
$ file index.py
index.py: ISO-8859 Java program text

$ file crane.txt
crane.txt: UTF-8 Unicode text

对于GBK的格式文档,结果也是ISO-8859:
file crane.txt
crane.txt: ISO-8859 text

发表评论

您的昵称 *

您的邮箱 *

您的网站