Linux OD command detailed

Source: Internet
Author: User

function Description:Output file contents.
Syntax:od [-abcdfhilovx][-a < Loadline cardinality >][-j < characters >][-n < number of characters >][-s < string characters >][-t < output format >][-w < number of characters per column >][--help][--version][file ...]
Additional notes:The OD instruction reads the contents of the given file and renders its contents in octal loadline.
Parameters:
-a The effect of this parameter is the same as specifying the "-ta" parameter.
-a< Loadline Cardinality > select the cardinality to calculate loadline.
-B The effect of this parameter is the same as specifying the "-TOC" parameter.
-C This parameter has the same effect as specifying the "-TC" parameter.
-d The effect of this parameter is the same as specifying the "-TU2" parameter.
-F The effect of this parameter is the same as specifying the "-TFF" parameter.
-H This parameter has the same effect as specifying the "-TX2" parameter.
-I the effect of this parameter is the same as specifying the "-TD2" parameter.
-j< number of characters > or--skip-bytes=< characters > skip setting the number of characters.
-L The effect of this parameter is the same as specifying the "-TD4" parameter.
-n< number of characters > or--read-bytes=< characters > until the number of characters set.
-O This parameter has the same effect as specifying the "-to2" parameter.
-s< string character count > or--strings=< string character > displays only strings that match the specified number of characters.
-t< output format > or--format=< output format > Set output format.
-V or--output-duplicates output without omitting duplicate data.
-w< number of characters per column > or--width=< per column character > sets the maximum number of characters per column.
-X The effect of this parameter is the same as specifying the "-H" parameter.
--help online Help.
--version Displays version information.

Example:

Description: Prepare a TMP file first

Description: Use a single-byte octal interpretation for output, noting that the default address format on the left is eight bytes

Description: Use ASCII code for output, note that includes escape characters

Description: Use single-byte decimal for interpretation

Description: Sets the address format to decimal.

Description: Set the address format to hexadecimal

Description: Skips the start of the two bytes

Description: Skips the start of two bytes and outputs only two bytes

Description: Output only 1 bytes per line

Description: Output of two bytes per line

Description: Outputs 3 bytes per line and is interpreted using octal single byte

Linux OD command detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.