trash-put
Move files/directories to the trash
TLDR
View documentation for the original command
SYNOPSIS
trash-put [options] file1 [file2 ...]
PARAMETERS
-h, --help
Display help message and exit.
-v, --verbose
Enable verbose output, showing detailed actions.
-f, --force
Force operation, skip certain confirmation prompts.
DESCRIPTION
The trash-put command provides a safer alternative to `rm` by moving files and directories to the system's trash or recycle bin. This allows users to recover accidentally deleted items.
Instead of permanently deleting files, trash-put places them in a designated trash directory, respecting user-specific and system-wide configurations. This utilizes the FreeDesktop.org Trash specification which allows multiple trash applications to access the same trash location. Files remain in the trash until explicitly emptied using other trash utilities like trash-empty or through the desktop environment's file manager. trash-put respects the file permissions and ownership while moving files to the trash.
CONFIGURATION
The trash location is determined by the FreeDesktop.org Trash specification. Generally, this is located in `$XDG_DATA_HOME/Trash` or `~/.local/share/Trash`. trash-put respects environment variables related to trash directory locations.
SEE ALSO
trash-list(1), trash-restore(1), trash-empty(1), rm(1)