Linux mread Command
The Linux mread command is used to copy MS-DOS files to a Linux/Unix directory.
mread is a command from the mtools utility, which can copy MS-DOS files to the Linux file system. This command is currently not commonly used, and the mcopy command is generally used instead.
Syntax
mread [MS-DOS files...][Linux file or directory]
Parameter Description:
[MS-DOS files...]: The source DOS file or directory path for the operation.
[Linux file or directory]: The target Linux file or directory path after the operation.
Example
To copy all contents from the "a:\" drive to the current working directory using the mread command, enter the following command:
$ mread a:\* ./ # Copy all files from drive a to the current working directory
Before executing this command, you can use the mdir command to view the original directory structure. After executing mread, you can use the ls command to view the file structure after the copy, as shown below:
$ mdir -/ a:\* # View files in drive a
Volume in drive A has no label # Load information
Volume Serial Number is 13D2~055C
Directory for A:/ # Directory information below
./TEST <DIR> 2011-08-23 16:59
# Display format: filename, directory size, modification time
AUTORUN.INF 265 2011-08-23 16:53
AUTORUN.BAT 43 2011-08-23 16:56
3 files 308 bytes # Total size statistics
724 325 bytes free # Free space
$ mread A:\* ./ # Copy all files from drive a to the current working directory
$ ls # View file or subdirectory information
TEST AUTORUN.INF AUTORUN.BAT # Display copied content