In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "what are the Linux file tools". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what are the Linux file tools.
1.diff command
I'd like to start by introducing this original Unix command line tool, which shows you the difference between two computer files. Diff is simple and easy to use, and is pre-installed on most Linux distributions. It compares files line by line and outputs the differences between files.
You can check the reference manual items of diff for ease of use.
# man diff
There are several wrappers for diff tools that improve their functionality, including:
Colordiff command
Colordiff is a Perl script that produces the same output as diff, but highlighted with color and syntax. It has a customizable color scheme.
You can install Colordiff on the Linux system using the default package manager named yum, dnf, or apt-get, as shown in the figure.
# yum install colordiff [On CentOS/RHEL/Fedora] # dnf install colordiff [On Fedora 23 + version] $sudo apt-get install colordiff [On Debian/Ubuntu/Mint]
You can check the manual input of Colordiff, as shown in the figure.
# man colordiff
Linux Colordiff command-Color comparison output
Wdiff command
The wdiff utility is a front end of the diff command that compares files word by word. This program is useful when comparing two texts, looking for changed words, and finding which paragraphs have been refilled.
To install wdiff on a Linux system, run:
# yum install wdiff [On CentOS/RHEL/Fedora] # dnf install wdiff [On Fedora 23 + version] $sudo apt-get install wdiff [On Debian/Ubuntu/Mint]
Use the wdiff reference manual to learn how to use it on Linux.
# man wdiff
Wdiff compares two files in Linux.
2.Vimdiff command
Vimdiff works in an advanced way compared to the diff utility. It allows users to edit up to four versions of a file when displaying file differences. When you run Vimdiff, it uses the vim file editor to open two or four files.
Vimdiff edits multiple files to look for differences.
Now that you've learned about the old comparison tools, take a look at some of the GUI comparison tools on Linux.
3.Kompare
Kompare is a comparison GUI wrapper that allows users to see differences between files and merge files.
Some of its functions include the following:
Support for multiple diff formats
Support directory comparison
Support for reading diff files
Customizable interface
Create a patch and apply the patch to the source file
Visit the home page: https://www.kde.org/applications/development/kompare/
4.DiffMerge
DiffMerge is a cross-platform GUI application that can be used to compare and merge files. It has two functional engines: the Diff engine shows the differences between the two files, supporting inline highlighting and editing, and the Merge engine outputs lines that have changed between the three files.
It has the following functions:
Support directory comparison
Integrated file browser
Highly configurable
5. MeldMurray-comparison tool
Meld is a lightweight GUI comparison and merging tool. It allows users to compare files, directories, and versioning programs. It is built specifically for developers and has the following features:
Two-way and three-way comparison of files and directories
Update the file comparison when the user enters more words
Use automatic merge mode and perform operations on changed blocks to make merging easier
Use visualization for easy comparison
Support for Git, Mercurial, Subversion, Bazaar and more
6.Diffuse--GUI comparison tool
Diffuse is another popular, free, small and simple GUI comparison and merging tool that you can use on Linux. It is written in Python and provides two major functions: file compression and version control to edit files, merge files, and output differences between files.
You can view the comparison summary, use the mouse pointer to select several lines of text in the file, match lines in adjacent files, and edit different files. Other features include the following:
Syntax highlighting
Keyboard shortcuts for easy navigation
Support for unlimited revocation
Support Unicode
Support for Git, CVS, Darcs, Mercurial, RCS, Subversion, SVK and Monotone
7. Xxdifftel-comparison and merging tools
XXdiff is a free, powerful file and directory comparison and merge tool that runs on operating systems like Unix, such as Linux, Solaris, HP/UX, IRIX, and DEC Tru64. One of the major limitations of XXdiff is that it does not support Unicode files or inline editing of diff files.
It has the following functions:
Shallow and recursive comparison of two or three files or two directories
Horizontal difference highlight
Interactively merge files and save the resulting output
Support for combined review / inspection
Support for external comparison tools such as GNU diff, SIG diff, Cleareddiff and more
Scripts can be used to extend
Full customization can be achieved using resource files, as well as many other minor features
8.KDiff3-compare and merge tool
KDiff3 is another cool cross-platform comparison and merging tool developed in KDevelop. It runs on all Unix-like platforms, including Linux, Mac OS X, and Windows.
It can compare or merge two or three files or directories and has the following main functions:
Show the difference line by line and character by character
Support for automatic merge
Built-in editor to handle merge conflicts
Support for Unicode, UTF-8 and many other codecs
Allow printout differences
Support for integration with Windows Explorer
It also supports automatic detection through byte order marking (BOM).
Support for manual alignment of rows
Interactive GUI and many other features
9.TkDiff
TkDiff is also a cross-platform, easy-to-use GUI wrapper for Unix diff tools. It provides the ability to view the differences between two input files side by side. It can run on Linux, Windows, and Mac OS X.
In addition, it has some exciting features, including diff bookmarks, graphical difference maps for easy quick navigation, and other features.
At this point, I believe that you have a deeper understanding of "what are the Linux file tools?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.