Forrest logo
back to the trash-rm tool

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

The command you provided, "trash-rm ${filename_or_directory1 filename_or_directory2 ---}", appears to be using the "trash-rm" command to move or delete one or more files or directories to the trash/recycle bin instead of permanently deleting them. However, the syntax you provided seems incorrect.

In a correct usage of the trash-rm command, you would typically specify the filenames or directories you want to move to the trash. Each file or directory name should be separated by a space. The command may look something like this:

trash-rm file1.txt directory1 file2.jpg

Here, "file1.txt", "directory1", and "file2.jpg" represent the names of the files or directories you want to send to the trash. The actual command may differ depending on the operating system and the trash management tool being used.

By using the trash-rm command instead of the regular "rm" (remove) command, you have the advantage of being able to recover the deleted files from the trash in case you accidentally delete something important.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the trash-rm tool