---
name: "restore-trash"
section: "1"
platform: "linux"
package: "trash-cli"
version: "0.12.9.14-2.1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/restore-trash"
---

# restore-trash(1)

Restore for Command line trash utility.

## NAME

restore-trash - Restore for Command line trash utility.

## SYNOPSIS

**restore-trash**

## DESCRIPTION

Use for restore a trashed file or directory, in the original path. This command is a part of trash-cli package that provides a command  line interface trashcan utility compliant with the FreeDesktop.org  Trash Specification. It remembers the name, original path, deletion date, and permissions of each trashed file.

## EXAMPLES

```
$ restore-trash
0 2007-08-30 12:36:00 /home/andrea/foo
1 2007-08-30 12:39:41 /home/andrea/bar
2 2007-08-30 12:39:41 /home/andrea/bar2
3 2007-08-30 12:39:41 /home/andrea/foo2
4 2007-08-30 12:39:41 /home/andrea/foo
What file to restore [0..4]: 4
$ ls foo
foo
```

## BUGS

Report bugs to http://code.google.com/p/trash-cli/issues

## AUTHORS

Trash was written by Andrea Francia \<andreafrancia@users.sourceforge.net\> and Einar Orn Olason \<eoo@hi.is\>. This manual page was written by Steve Stalcup \<vorian@ubuntu.com\>. Changes made by Massimo Cavalleri \<submax@tiscalinet.it\>.

## SEE ALSO

[trash-put(1)](/trash-put/1.md), [trash-list(1)](/trash-list/1.md), [trash-empty(1)](/trash-empty/1.md), and the FreeDesktop.org Trash Specification at  http://www.ramendik.ru/docs/trashspec.html.\

Both are released under the GNU General Public License, version 2 or later.
