Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux mread command

Linux mread command

Linux Command Reference Linux Command Reference

The Linux mread command is used to copy MS-DOS files into a Linux/Unix directory.

mread is an mtools utility command that can copy MS-DOS files into the Linux file system. This command is not commonly used now; the mcopy command is generally used instead.

Syntax

mread [MS-DOS文件...][Linux文件或目录]

Parameter description:

Example

To use the mread command to copy all content from drive "a:" to the current working directory, enter the following command:



$ mread a:\* ./     #将a盘上的所有文件复制到当前工作目录 

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 copied file structure again, as shown below:



$ mdir -/ a:\*      #查看a盘中的文件  

Volume in drive A has no label          #加载信息  

Volume Serial Number is 13D2~055C  

Directory for A:/                   #以下为目录信息  

./TEST  2011-08-23 16:59         

#Display format as 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                       #统计总大小  

724 325 bytes free                  #剩余空间  

$ mread A:\* ./     #将a盘上所有文件复制到当前工作目录  

$ ls                                    #查看文件或子目录信息  

TEST AUTORUN.INF AUTORUN.BAT            #显示复制后的内容  

Linux Command Reference Linux Command Reference