Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the purpose of Linux's eject command

Shulou Source: shulou.com Published: 2022-06-01 19:17:21 09月27日 Update

This article mainly introduces the Linux reject command has what role related knowledge, detailed and easy to understand, simple and fast operation, has a certain reference value, I believe that we read this Linux reject command has what role the article will gain, let's take a look at it.

reject is used to exit a removable device

The reject command is used to exit a removable device. If the device is hooked, the reject command unloads the device before exiting.

eject allows removable media (typically cd-ROM, floppy disk, tape, or JAZ and zip disks) to be ejected under software control. This command can also control some multi-disk CD-ROM controllers, control the auto-eject function supported by some devices, and control the closing of some CD-ROM drive disk trays. The device corresponding to name will pop up. Name can be the device file or its mount point, the full path, or omitting the previous/dev or/mnt device file name. If no name is specified, cdrom is used by default.

There are four different ways to eject, depending on whether the device is a CD-ROM, SCSI device, removable floppy disk, or tape. The default pop-up tries all four methods in turn until it succeeds. If the device is currently mounted, uninstall it before ejecting it.

syntax reject (option)(parameter) option-a or--auto: controls the automatic exit function of the device; -c or--changerslut Select the optical drive in the optical drive cabinet; -d or--default: display default devices instead of actually performing the action; -f or--floppy: eject removable disk; -h or--help: display help; -n or--noop: display specified devices; -q or--tape: eject tape; -r or--cdrom: eject disc; -s or--scsi: eject device with SCSI command; -t or--trarecycle: close disc tray; -v or--verbose: When executed, detailed instructions are displayed. Parameter Device Name: Specifies the name of the pop-up device.

The content of this article on "Linux eject command what role" is introduced here, thank you for reading! I believe that everyone has a certain understanding of the knowledge of "what is the role of the Linux eject command". If you still want to learn more knowledge, please pay attention to the industry information channel.

Tags: Devices commands controls functions knowledge tapes disks extractors decimation optical discs optical drives contents functions parameters trays files methods articles floppy disks mobile Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Tech Info NVidia Shulou Information Docker