XEmacs | Java | Linux Commands | KDE | man Pages | Printing TH> | Home |
---|
MS-DOS files can be manipulated on Linux systems by using a set of tools called Mtools. The following is a list of basic commands you may need to use:
Listing Files
Copying files
Deleting files
Displaying files
Formatting a disk
Changing directories
Creating directories
Renaming files or directories
Removing directories
mdir
You could, if you wished, specificy a directory:mdir mydir
This would give you a list of the files in the 'mydir' directory on your DOS disk.
mcopy filename a:
Or you can copy the file and change the filename (within the DOS restriction of eight characters followed by a three-character extension) with:mcopy filename a:filename
To copy a file from your DOS disk to your current directory and change the filename use the command:mcopy a:filename filename
Or you can keep the same filename and place the file in your current directory with:mcopy a:filename .
N.B. The period in the above command indicates your current Linux directory.mdel filename
mtype filename
If the file is longer than a screenful, you can display it one screen at a time by piping the output:mtype filename | less
mcd mydir
mcd ..
The first command above, changes to a directory in the floppy's current directory called 'mydir'.
The second command above changes "out of" the current directory on the floppy.
mmd home
This will create a directory called 'home' on your DOS disk and....
mmd /home/user
this will create a subdirectory in 'home' called 'user'.
mmove user user1
Will rename the directory 'user' to 'user1'
mmove /home/user ..
Will move the subdirectory user out of the current directory 'home'.
mrd user
Will remove the directory 'user' from the DOS disk.