Linux system folder comparing method

A folder, file technology

Inactive Publication Date: 2014-01-01
LANGCHAO ELECTRONIC INFORMATION IND CO LTD
5 Cites 0 Cited by

AI-Extracted Technical Summary

Problems solved by technology

This method does not have a proprietary command to compare the contents of two folders under the command line interface of the Linux system, but uses a software graphical interface for comparison. However, because the graphical i...
View more

Abstract

The invention discloses a Linux system folder comparing method. The Linux system folder comparing method comprises the following steps of S10, obtaining the files and the directory lists of two folders to be compared through a Linux system reading command; S11, obtaining the location of the files and the lists according to the files and the lists; S12, determine whether to read the files or the lists according to an opendir ( ) function and perform comparison. The Linux system folder comparing method is convenient and rapid, by inputting a comparing command in a command line interface, the comparison of the content of two folders can be achieved, so that a user can obtain the difference of the two folders by directly inputting the location of the folders in the Linux command line interface.

Application Domain

File/folder operationsSpecial data processing applications

Technology Topic

GNU/LinuxComputer science +1

Image

  • Linux system folder comparing method

Examples

  • Experimental program(1)

Example Embodiment

[0014] In order to make the objectives, technical solutions, and advantages of the present invention clearer, the following further describes the present invention in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention.
[0015] The Linux system folder comparison method of the present invention is aimed at the comparison of the contents of two folders under the Linux system command line interface. First, obtain the file and directory list of the two folders to be compared through the Linux system read command; then, obtain the file and directory location through the file and directory list; then use the opendir() function to determine whether the read is a file or a directory. If the directory name is read, it is judged whether the directory name is the same, if the directory name is the same, then the comparison process is continued; if it is inconsistent, the information is output; if the file is read, it is judged whether the file name is consistent, if not, it is output If the information is consistent, read the file content, compare byte by byte, and finally output the comparison result.
[0016] figure 1 Shown is the flow of the method for comparing Linux system folders in the present invention. First, use the read command to generate the file and directory lists of the two folders; then intercept the file or directory names in each line of the file and directory lists; determine whether the interception is, If it is not intercepted, then return to continue intercepting; if it is intercepted, it will be judged whether it is all directories. If the judgment result is no, compare the content to see if the content is consistent; if it is not consistent, the two files will be displayed inconsistent; if the content is compared If they are consistent, return and continue to intercept the file or directory name in each line of the file and directory list. If it is judged that all the obtained directories are directories, then it is judged whether the directory names are consistent. If the directory names are inconsistent, it will prompt that the two directory names are different; if the directory names are consistent, return to continue to intercept the files or directories in each line of the file and directory list name.
[0017] The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modification, equivalent replacement and improvement made within the spirit and principle of the present invention shall be included in the protection of the present invention. Within range.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products