LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mcomp

Compares two files using mtools

TLDR

Compare a file on a DOS disk with a local file
$ mcomp [a:file.txt] [path/to/local_file.txt]
copy
Compare a file from a disk image with a local file
$ mcomp -i [path/to/disk.img] [::/file.txt] [path/to/local_file.txt]
copy

SYNOPSIS

mcomp msdos-file local-file

DESCRIPTION

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.

PARAMETERS

msdos-file

File on a DOS/floppy disk accessed via mtools.
local-file
Local file to compare against.

INSTALL

sudo apt install mtools
copy
sudo dnf install mtools
copy
sudo pacman -S mtools
copy
sudo apk add mtools
copy
sudo zypper install mtools
copy
brew install mtools
copy
nix profile install nixpkgs#mtools
copy

CAVEATS

The first argument must be a file accessible via mtools (e.g., on a DOS-formatted disk or disk image). On modern systems, using mcopy followed by cmp provides the same functionality and is more commonly used.

SEE ALSO

cmp(1), mcopy(1), diff(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid