Forrest logo
tool overview
On this page you find all important commands for the CLI tool eject. If the command you are looking for is missing please ask our AI.

eject

Eject is a command line tool that is used to physically eject removable media from a device. It is commonly used to eject CDs, DVDs, USB drives, and external hard drives. The eject command is often used in Unix-like operating systems, such as Linux and macOS. By default, ejecting a removable media using this tool requires superuser (root) privileges. However, regular users can also be granted permission to use eject via specific configurations. In most cases, ejecting a device will prompt it to be safely unmounted first, ensuring no data loss or corruption. The eject command offers various options, such as -v (verbose mode), -T (closing the tray if currently open), and -s (displaying the device status). Some systems may have additional functionalities like automatically mounting an ejected media or disabling the eject functionality altogether. It is important to remember that eject only works with devices that support the "eject" command, and not all devices have this capability. Overall, eject is a simple and handy command line tool for safely removing removable media from a device.

List of commands for eject:

tool overview