102-500 · Question #117
What is the purpose of the iconv command?
The correct answer is C. It converts files from one character set to an other. iconv is a standard Unix/Linux utility whose name literally stands for input conversion - it reads a file encoded in one character set (e.g., ISO-8859-1) and outputs it in another (e.g., UTF-8), making C correct. A is wrong - Image format conversion is handled by tools like…
Question
Options
- AIt converts bitmap images from one format to another such as PNG to JPEG.
- BIt verifies that the root directory tree compiles to all conventions from the Filesystem Hierarchy
- CIt converts files from one character set to an other.
- DIt changes the mode of an inode in the ext4 filesystem.
- EIt displays additional meta information from icon files ending in .ico.
How the community answered
(38 responses)- A3% (1)
- B5% (2)
- C79% (30)
- D11% (4)
- E3% (1)
Explanation
iconv is a standard Unix/Linux utility whose name literally stands for input conversion - it reads a file encoded in one character set (e.g., ISO-8859-1) and outputs it in another (e.g., UTF-8), making C correct.
- A is wrong - Image format conversion is handled by tools like
convert(ImageMagick) orffmpeg;iconvhas nothing to do with binary image data. - B is wrong - Verifying the Filesystem Hierarchy Standard is the job of
fhschecks or tools likefsstnd;iconvdoesn't touch directory structures. - D is wrong - Changing inode modes (permissions) is done with
chmod;iconvdoesn't interact with filesystem metadata. - E is wrong - Inspecting
.icoicon metadata is not a standard Linux utility function, andiconvdoes nothing with icon files.
Memory tip: Break the name apart - input conversion → iconv. Think of it as a translator between text encodings (the "language" your bytes speak), not a tool for images, filesystems, or icons.
Topics
Community Discussion
No community discussion yet for this question.