In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, I would like to share with you the relevant knowledge of how to use the Linux hexdump command. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
The Linux common command hexdump command is generally used to view the hexadecimal encoding of "binary" files, but in fact it can view any file, not just binary files.
Hexdump display file hexadecimal format
Syntax hexdump [options] [file]... Option-n length formats only the first length bytes of the input file. -C outputs hexadecimal and ASCII codes of the specification. -b single-byte octal display. -c single byte character display. -d double-byte decimal display. -o double-byte octal display. -x double byte hexadecimal display. -s outputs from the offset. -e specifies the format string, which is contained in a pair of single quotation marks, such as:'a format1 b', "format2"'. Each format string consists of three parts, each separated by spaces, the first shape, such as a _ 4. Format strings similar to printf can be used in format1 and format2, such as:
D: two-digit decimal x: three-digit hexadecimal o: two-digit octal% c: single character, etc. There are also some special uses:
% _ ad: marks the sequence number of the next output byte, expressed in decimal. % _ ax: marks the sequence number of the next output byte, expressed in hexadecimal. % _ ao: marks the sequence number of the next output byte, expressed in octal. % _ p: for those that cannot be displayed in regular characters. Instead. If you want to display multiple format strings on the same line, you can follow multiple-e options.
Instance hexdump-e '16amp 1 "X"|"-e' 16max 1 "% _ p"\ n" test 00 01 02 03 04 06 07 08 09 A 0B 0C 0D 0E 0F |. 10 11 12 13 14 15 16 17 18 18 1A 1B 1C 1D 1E 1F |. 20 21 22 23 24 25 26 27 28 2A 2B 2B 2C 2D 2E 2F |! "# $% &'() * +, -. / above is all the content of this article" how to use Linux hexdump commands ". Thank you for reading! I believe you will gain a lot from reading this article. The editor will update different knowledge for you every day. If you want to learn more, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.