mcopy

copies files to/from MS-DOS filesystems

TLDR

Copy file to MS-DOS disk
$ mcopy [file.txt] [a:]
Copy from MS-DOS disk
$ mcopy [a:file.txt] [.]
Copy multiple files
$ mcopy [*.txt] [a:]
Preserve modification time
$ mcopy -m [file] [a:]
Overwrite without prompt
$ mcopy -o [file] [a:]
Copy recursively
$ mcopy -s [dir/] [a:]

SYNOPSIS

mcopy [options] source target

DESCRIPTION

mcopy copies files to/from MS-DOS filesystems. It's part of the mtools package.The tool accesses FAT filesystems without mounting. Useful for floppy disks and USB drives.

PARAMETERS

SOURCE

Source file or directory.
TARGET
Target location.
-m
Preserve modification time.
-o
Overwrite without asking.
-s
Recursive copy.
-n
No confirmation.
--help
Display help information.

INSTALL

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

CAVEATS

Part of mtools. Requires mtools config. FAT filesystem only.

HISTORY

mcopy is part of mtools, a collection of utilities for accessing MS-DOS disks from Unix.

SEE ALSO

mdel(1)