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

trash-rm

Trash-rm is a command-line tool used for safely moving files and directories to the trash instead of permanently deleting them. It provides a convenient and secure alternative to the traditional "rm" command.

  1. The primary purpose of trash-rm is to avoid accidental or irreversible deletion of files and folders.
  2. When files are deleted using trash-rm, they are moved to a designated trash directory instead of being erased immediately.
  3. This allows users to recover deleted items from the trash, providing a safety net in case of mistakes or unintentional deletions.
  4. Trash-rm supports various options, allowing users to customize its behavior according to their preferences.
  5. For example, it provides an interactive mode where users are prompted for confirmation before deleting each file.
  6. It also supports moving files to specific subdirectories within the trash, organizing deleted items based on user-defined criteria.
  7. Trash-rm can be integrated with other command-line tools and scripts, making it highly versatile and configurable.
  8. It supports a wide range of file systems, enabling its usage on different operating systems like Linux, macOS, and UNIX.
  9. Trash-rm prevents conflicts with existing files in the trash by appending unique identifiers to deleted items' names.
  10. It provides informative output, notifying users about actions performed and displaying the number of files moved to the trash.

List of commands for trash-rm:

  • trash-cli:tldr:92691 trash-cli: Remove specific files from the current trashcan.
    $ trash-rm ${filename_or_directory1 filename_or_directory2 ---}
    try on your machine
    explain this command
tool overview