In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use the Linux common command cmp, the article is very detailed, has a certain reference value, interested friends must read it!
The cmp command is used to compare two files for differences. When the two files are exactly the same, the command will not display any information. If a discrepancy is found, the character and column number of the first discrepancy are marked by default. If no file name is specified or if the file name given is "-," the cmp command reads data from standard input devices.
Syntax cmp [-clsv][-i ][--help][first file][second file] Parameters:
-c or-print-chars Displays the character corresponding to that character in addition to the decimal character that indicates the difference.
-i or-ignore-initial= Specify a number.
-l or-verbose marks all the differences.
-s or-quiet or-silent No error messages are displayed.
-v or-version Displays version information.
- Help Online Help.
Example To determine if two files are identical, enter:
cmp prog.o.bak prog.o This compares prog.o.bak and prog.o. If the files are identical, no message is displayed. If the files are different, the first different location is displayed; for example:
prog.o.bak prog.o differ: char 4, line 1 If the message cmp: EOF on prog.o.bak is displayed, the first part of prog.o is the same as prog.o.bak, but there is additional data in prog.o.
The above is "Linux common command cmp how to use" all the content of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to 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.