# Scenario

In Linux, deleting files is a very sensitive operation. Once deleteted, the files are definitively lost.

# Solution

The plugin trash-cli allows to have a way to undelete files if needed. In fact, the files are moved in a hidden folder (~/.local).

To install trash-cli:

To remove files:

Or multiple files:

To list the trash content:

To restore a file from trash:

To remove all the files from the trash:

This command is the same as the rm command.