Check linefeed code and character encoding on Linux

Table of Contents

It is easy to use nkf to check linefeed code and character encoding of text files on linux as follows:

[cc]$ nkf --guess file.txt[/cc]

Linux上でテキストファイルの改行コードと文字コードを知るには上のコマンドが使えます.