Run DOS commands in Linux environment

  
The Linux system provides a set of portable tools called mtools that allow users to easily read and write files and directories from standard DOS floppy disks. They are very useful for exchanging files between DOS and Linux environments. They are powerful means of exchanging files between systems that do not have a common file system format. For a MSDOS floppy disk, just put the floppy disk in the floppy drive, you can use the commands provided by mtools to access the files on the floppy disk.
The main commands of mtools are as follows:
mcd directory name changes MSDOS directory;
mcopy source file target file copies files between MSDOS and Unix;
mdel file name delete MSDOS file;
mdir The directory name shows the MSDOS directory;
mformat drive letter creates the MSDOS file system on a low-level formatted floppy disk;
rnlabel drive letter produces the MSDOS volume label;
mmd directory name establishes the MSDOS directory;
mrd directory Name to delete the MSDOS directory;
mren source file target file to rename the existing MSDOS file;
mtype file name shows the contents of the MSDOS file.
Tip: These commands are very similar to the corresponding MSDOS commands.

Copyright © Windows knowledge All Rights Reserved