file
Met het file commando wordt het file type opgevraagd :
$ file naam_van_bestand ISO-8859 text, with very long lines, with CRLF line terminators
iconv
Met het iconv commando wordt de Character Encoding van een file gewijzigd :
iconv -f ISO-8859-1 -t UTF-8 naam_van_bestand > naam_van_bestand_utf8
| -f encoding | Specifies the encoding of the input | 
| -t encoding | Specifies the encoding of the output. | 
Resultaat
$ file naam_van_bestand_utf8 UTF-8 Unicode text, with very long lines, with CRLF line terminators
                        
                        Categorieën
                    
                                            
                            
                                UNIX