flcopy Command
Purpose
Copies to and from diskettes.
Syntax
Description
The flcopy command copies a diskette (opened as /dev/rfd0) to a file named floppy created in the current directory, then prints the message: Change floppy, hit return when done. The flcopy command then copies the floppy file to the diskette. You can specify the -f, -h, -r, or -tNumber flag to modify the behavior of the flcopy command.
Note: You cannot use the flcopy command to copy data from one
diskette to another diskette of different size.
Flags
Item | Description |
---|---|
-f Device | Allows you to specify a drive other than /dev/rfd0. |
-h | Causes the flcopy command to open the floppy file in the current directory and copy it to /dev/rfd0. |
-r | Tells the flcopy command to exit after copying the diskette to the floppy file in the current directory. |
-t Number | Causes only the specified Number of tracks to be copied. The tracks copied always begin with the first tracks on the diskette. |
Exit Status
This command returns the following exit values:
Item | Description |
---|---|
0 | Successful completion. |
>0 | An error occurred. |
Examples
- To copy /dev/rfd1 to the floppy file in the current directory, enter:
- To copy the first 100 tracks of the diskette, enter:
Files
Item | Description |
---|---|
/usr/sbin/flcopy | Contains the flcopy command. |