The Linux eject command is used to exit the pull-out device.
If the device is already mounted, eject will first dismount the device before exiting.
Grammar
[-Dfhnqrstv][-< switch >][-< optical drive number >][device]
parameter Description :
- The device can be a driver name, or it can be a hang-in point.
- -a< switch > or--auto< switch > control device Auto-Exit function.
- -c< Optical Drive number > or--changerslut< optical drive number > select the optical drive in the optical drive cabinet.
- -D or--default displays the preset device instead of actually performing the action.
- -F or--floppy exit the extraction disk.
- -h or--help display Help.
- -N or--noop displays the specified device.
- -Q or--tape exit the tape.
- -R or--cdrom exit the disc.
- -S or--SCSI to eject the device with a SCSI command.
- -T or--trayclose close the disc tray.
- A detailed description is displayed when the-V or--verbose is executed.
Instance
# Eject//no parameter default popup # eject-r/dev/cdrom//specified device
Linux Eject Eject Optical drive