Multiple choice technology operating systems

Write a command to display a file’s contents in various formats?

  1. $od file_name
  2. $od -cbd file_name
  3. $od -cb file_name
  4. $od -c file_name
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The od (octal dump) command displays file contents in various formats. The -cbd flag combination specifies output format: -c for character, -b for decimal, -d for octal. This multi-format output is useful for examining binary files. Option B is the complete correct syntax with all three format flags.