Linux_FoundationLinux_Foundation
LFCS · Question #492
LFCS Question #492: Real Exam Question with Answer & Explanation
The correct answer is D: iconv. The question asks for the command-line utility used to convert text files between different character encodings. The iconv command is specifically designed for this purpose.
Submitted by saadiq_pk· Apr 18, 2026Essential Commands
Question
Which of the following commands can be used to convert text files in one character encoding to another character encoding?
Options
- Acat
- Bconvert
- Cdd
- Diconv
- Eutf2utf
Explanation
The question asks for the command-line utility used to convert text files between different character encodings. The iconv command is specifically designed for this purpose.
Common mistakes.
- A.
catis used to concatenate and display file contents, not convert character encodings. - B.
convertis typically part of ImageMagick and is used for image format conversions, not text encoding. - C.
ddis used for converting and copying files at a low level (e.g., block by block), but it's not designed for character encoding conversions. - E.
utf2utfis not a standard Linux command for character encoding conversion.
Concept tested. Text file character encoding conversion
Reference. https://linux.die.net/man/1/iconv
Topics
#character encoding#iconv command#text file manipulation#core utilities
Community Discussion
No community discussion yet for this question.