$ printf '\xf0\xd2\xc9\xd7\xc5\xd4\n' > 1.file
$ iconv -f koi8-r 1.file
Привет
$ iconv -f koi8-r 1.file -o 1.prubyet
$ file 1.prubyet
1.prubyet: UTF-8 Unicode text
$ cat 1.prubyet
Привет
$ cat 1.file
������
$ file 1.file
1.file: ISO-8859 text
####
$ echo Привет >3.file
$ diff 1.file 3.file
1c1
< ������
---
> Привет
$
####
D0 9F D1 80 D0 B8 D0 B2 D0 B5 D1 82 0A