Linux system folder comparing method

A folder, file technology

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

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2014-01-01
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention belongs to the technical field of computer systems, and relates to a folder comparison method of a Linux system. Background technique

[0002] In the Linux system, when comparing the contents of two folders at present, specific software is generally installed in the Linux system, and the contents of the two folders are compared using a software graphical interface. 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 interface requires specific software to be installed in Linux, it is extremely difficult to use. It is cumbersome, and the installation of specific software in Linux leads to the occupation of system resources, which in turn reduces the operating speed of the system.

[0003] Therefore, in view of the defects existing in the above-mentioned current prio...

Examples

Embodiment Construction

[0014] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0015] A Linux system folder comparison method of the present invention is aimed at comparing the contents of two folders under the command line interface of the Linux system. First, obtain the file and directory lists of the two folders to be compared through the Linux system read command; then, obtain the file and directory locations through the file and directory lists; then use the opendir() function to determine whether the file or directory is read, If the read is a directory, then judge whether the directory name is consistent, if the directory name is consistent, continue the comparison ...