Linux eject command
Linux Command大全
The Linux eject command is used to exit removable devices.
If the device is mounted, eject will unmount the device first before exiting.
Syntax
eject [-dfhnqrstv][-a <on/off>][-c <drive number>][Device]
Parameter Description:
- [Device] The device can be the name of the driver or the mount point.
- -a<on/off> or--auto<on/off> Control the automatic ejection feature of the device.
- -c<drive number> or--changerslut<drive number> Select the drive in the drive cabinet.
- -d or--default Display the preset device instead of performing actual actions.
- -f or--floppy Exit the removable disk.
- -h or--help Display help.
- -n or--noop Display the specified device.
- -q or--tape Exit the tape.
- -r or--cdrom Exit the CD.
- -s or--scsi Exit the device using SCSI commands.
- -t or--trayclose Close the tray of the CD.
- -v or--verbose Display detailed information during execution.
Online Examples
# eject //Default eject without parameters
# eject -r /dev/cdrom //Specify Device
Linux Command大全