← 返回命令列表

Linux command

eject 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Example

eject [-d|--default]

Eject

eject

Eject

eject [/dev/cdrom]

Toggle

eject [-T|--traytoggle] [/dev/cdrom]

Example

eject [-r|--cdrom] [/dev/cdrom]

Example

eject [-f|--floppy] [/mnt/floppy]

Example

eject [-q|--tape] [/mnt/tape]

Example

eject [-i|--manualeject] [on|off]

说明

eject ejects removable media such as CDs, DVDs, floppy disks, and tape drives. It can also control the tray mechanism and lock/unlock devices. The default order for device types is cd-rom, scsi, floppy, then tape.

参数

-d, --default
Display the default device
-T, --traytoggle
Toggle tray open/closed state
-r, --cdrom
Eject using CD-ROM method
-f, --floppy
Eject using floppy method
-q, --tape
Eject using tape method
-i, --manualeject _on|off_
Control whether physical button works
-t, --trayclose
Close the tray

FAQ

What is the eject command used for?

eject ejects removable media such as CDs, DVDs, floppy disks, and tape drives. It can also control the tray mechanism and lock/unlock devices. The default order for device types is cd-rom, scsi, floppy, then tape.

How do I run a basic eject example?

Run `eject [-d|--default]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d, --default do in eject?

Display the default device