← 返回命令列表

Linux command

mcomp 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Compare a file on a DOS disk with a local file

mcomp [a:file.txt] [path/to/local_file.txt]

Compare a file from a disk image with a local file

mcomp -i [path/to/disk.img] [::/file.txt] [path/to/local_file.txt]

说明

mcomp compares two files byte by byte, where the first file resides on a DOS-formatted disk (such as a floppy) accessible through mtools. It is functionally equivalent to using mcopy to copy the file locally and then comparing with cmp. This command is part of the mtools package, a collection of utilities for accessing MS-DOS disks from Unix without mounting them.

FAQ

What is the mcomp command used for?

mcomp compares two files byte by byte, where the first file resides on a DOS-formatted disk (such as a floppy) accessible through mtools. It is functionally equivalent to using mcopy to copy the file locally and then comparing with cmp. This command is part of the mtools package, a collection of utilities for accessing MS-DOS disks from Unix without mounting them.

How do I run a basic mcomp example?

Run `mcomp [a:file.txt] [path/to/local_file.txt]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more mcomp examples?

This page includes 2 examples for mcomp, plus related commands for nearby Linux tasks.