以 PDF 格式下载本书 (7230 KB)
eject(1)Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Files | Attributes | See Also Name
Synopsiseject [-dflqt] [ [device | nickname]] DescriptionThe eject utility is used for those removable media devices that do not have a manual eject button, or for those that might be locked due to, for instance, being mounted. The device may be specified by its name or by a nickname. If no device is specified, the default device is used. Only devices that support eject under program control respond to this command. When eject is used on media that can only be ejected manually, it does everything except remove the media, including unmounting the file system if it is mounted. In this case, eject displays a message that the media can now be manually ejected. Do not physically eject media from a device that contains mounted file systems. eject automatically searches for any mounted file systems that reside on the device, and attempts to umount them prior to ejecting the media. See mount(1M). If the unmount operation fails, eject prints a warning message and exits. The -f option can be used to specify an eject even if the device contains mounted partitions. If you have inserted a floppy diskette, you might need to use volcheck(1) before ejecting the media to inform the system the floppy's presence. Pressing the physical media eject button located on some drives' front panel has the same effect as invoking eject for the respective drive. Not all drives have this capability. Options
The following options are supported: Operands
The following operands are supported: ExamplesExample 1 Ejecting MediaThe following example ejects media by its volume label:
Example 2 Ejecting a Floppy DiskThe following example ejects a floppy disk from the first floppy drive:
Exit Status
The following exit codes are returned: FilesAttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSunOS 5.11 Last Revised 8 Sep 2009Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Files | Attributes | See Also |
|||||||