Latest web development tutorials

Linux eject command

Linux command Daquan Linux command Daquan

Linux eject command is used to exit the removable device.

If the device has been linked in, it will first eject the removable device before exiting.

grammar

eject [-dfhnqrstv][-a <开关>][-c <光驱编号>][设备]

Parameter Description:

  • [Equipment] apparatus may be driver name, it can also be linked into the points.
  • -a <switch> or --auto <switch> Control devices automatically exit function.
  • -c <drive number> or --changerslut <drive number> to select the drive cabinet drive.
  • -d or --default default display device, rather than the actual action is performed.
  • -f or --floppy quit removable disk.
  • -h or --help displays help.
  • -n or --noop display the specified device.
  • -q or --tape exit tape.
  • -r or --cdrom eject the disc.
  • -s or --scsi to SCSI commands to exit the device.
  • -t or --trayclose close the disc tray.
  • When the -v or --verbose perform, display detailed instructions.

Examples

# eject //不加参数默认弹出
# eject -r /dev/cdrom //指定设备

Linux command Daquan Linux command Daquan