how to check encoding of a text file ubuntu code example Example: see encoding of file txt linux file <file.txt> file -bi <file.txt>