![]() |
![]()
| ![]() |
![]()
NAMEmapdir - Map directory structures SYNOPSISmapdir [-dfhnpt] [-e excludes] [-s savefile] [-x excludes_file] [/path/to/file] DESCRIPTIONThe mapdir utility is used to map the structure of files and most notably folder hierarchies. Unless overridden with the -n or -s options, the results are stored in a report file in the invoking user's home directory, according to the following naming convention: mapdir_path_to_file_date.txt. If the file mapped is a regular file, then mapdir also reports its size in bytes and the file's md5 or sha256 checksum. If upon invocation no argument is passed to mapdir, then the utility maps the structure of the current working directory. The utility mainly aims to facilitate verifying the consistency between two (or more) file hierarchies that contain the same files, as the generated report files can subsequently be passed to the diff(1) utility. When using mapdir to this end, it should generally be invoked with the -f switch. OPTIONS
EXAMPLES1. Verify the consistency between /path/to/dir1 and /path/to/dir2: mapdir -fh -s dir1_map.txt /path/to/dir1
2. Map the structure of /path/to/dir in a tree like view to stdout: mapdir -fnp /path/to/dir 3. Map the structure of /usr but exclude directories /usr/games and /usr/include: mapdir -s usr_directory.txt -e "/usr/games /usr/include" /usr SEE ALSOmapdircmp(1) BUGSPlease report when found. AUTHOROliver Mahmoudi (contact@olivermahmoudi.com)
|