Linux command
mcopy 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
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:]
说明
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.
参数
- -m
- Preserve modification time.
- -o
- Overwrite without asking.
- -s
- Recursive copy.
- -n
- No confirmation.
- --help
- Display help information.
FAQ
What is the mcopy command used for?
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.
How do I run a basic mcopy example?
Run `mcopy [file.txt] [a:]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -m do in mcopy?
Preserve modification time.