Forrest logo
back to the trash tool

trashy:tldr:0240a

trashy: List items in the trash.
$ trash list
try on your machine

The command "trash list" is used to list all the files and directories present in the trash or recycle bin on a Linux or Ubuntu-based system.

When you delete a file or directory in Linux, it is not immediately removed from the file system, but instead moved to a special directory known as the trash or recycle bin. This allows you to restore accidentally deleted files or directories.

By executing the "trash list" command, you can see a list of all the files and directories that have been moved to the trash. The displayed information typically includes the file or directory name, its location within the trash, and possibly other details like size and modification date.

This command is particularly useful if you want to see what files or directories you have deleted and may want to restore, or simply to verify that the deleted items are in the trash before permanently deleting them.

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 tool