Latest web development tutorials

Linux mread command

Linux command Daquan Linux command Daquan

Linux mread command is used to copy MS-DOS files to the Linux / Unix directory.

mread to mtools command tool, you can copy files to the Linux MS-DOS file system. This command is now less common, generally use mcopy command instead.

grammar

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

Parameter Description:

  • [MS-DOS file ...]: to perform the operation DOS source file or directory path
  • [Linux file or directory]: Linux target file or directory paths of execution after the operation

Examples

Use instruction mread disc "a: \" to copy all the contents to the current working directory, enter the following command:

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

Before executing this command, you can use the command to check mdir original directory structure. After performing mread, you can use the ls command to view the file structure copied again after the results are as follows:

$ mdir -/ a:\*      #查看a盘中的文件  
Volume in drive A has no label          #加载信息  
Volume Serial Number is 13D2~055C  
Directory for A:/                   #以下为目录信息  
./TEST <DIR> 2011-08-23 16:59         
#显示格式为文件名,目录大小,修改时间  
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 Daquan Linux command Daquan