Use the tool xxd in linux

Source: Internet
Author: User
In linux, the tool xxd uses xxd to display a file in hexadecimal format. the specific options are as follows. -A: It automatically skips blank content. by default, it is disabled-c: it is followed by a number to indicate the number of bytes of the hexadecimal number displayed in each line... information & nbsp in linux the tool xxd uses xxd to display a file in hexadecimal format. the specific options are as follows. -A: It automatically skips blank content. the default value is-c. It is followed by a number to indicate the number of bytes displayed in each row in hexadecimal format. the default value is 16 bytes. -G: Set to several bytes. the default value is 2 bytes. -L: The number of bytes displayed. -S: followed by "+-" and "address. Plus", it indicates the content starting from the address. minus signs indicate the content starting from the end address. Usage: xxd-a-c 12-g 1-l 512-s + 0x200 [inputfile] [automatically skip blank] [12 bytes per line] [one byte] [display 512 byte content: [starting from 0x200] [input file] lishuo @ lishuo-laptop: ~ $ Xxd-a-c 12-g 1-l 512-s + 0x2600 ~ /Desktop/I/. img 0002600: 41 6c 00 6f 00 61 00 64 00 65 00 0f Al. o. a. d. e 000260c: 00 AB 72 00 2e 00 62 00 69 00 6e 00 r... B. I .n. 0002618: 00 00 00 ff 4c 4f 41 44 ...... LOAD 0002624: 45 52 20 42 49 4e 20 00 64 94 8e er bin. d 0002630: 78 3a 78 3a 00 00 94 8e 78 3a 03 00 x :... X: 000263c: 51 16 00 00 41 6b 00 65 00 72 00 6e Q... Ak. e. r. n 0002648: 00 65 00 0f 00 da 6c 00 2e 00 62 00. e... L... B. 0002654: 69 00 6e 00 00 00 00 ff I. n ...... 0002660: 4b 45 52 4e 45 4c 20 42 49 4e 20 kernel bin 000266c: 00 64 94 8e 78 3a 78 3a 00 00 94 8e. dx: x :... 0002678: 78 3a 0f 00 54 15 00 00 00 00 00 00 x: T ...... 0002684: 00 00 00 00 00 00 00 00 00 00 ...... * 00027f8: 00 00 00 00 00 00 ......

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.