Linux system folder comparing method
A folder, file technology
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
Abstract
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 ...