Download
67 lines 1.6 KiBGroffModified 2021-12-03 raw
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
.\" Automatically generated by Pandoc 2.14.2
.\"
.TH "TRASH" "1" "Dec 3, 2021" "" ""
.hy
.SH NAME
.PP
trash - A command-line trash tool.
.SH SYNOPSIS
.PP
\f[B]trash\f[R] [\f[I]-v\f[R]] [\f[I]-i\f[R]] [\f[I]-u\f[R]]
[\f[I]-e\f[R]] [[\f[B]--\f[R]] \f[I]files\&...\f[R]]
.SH DESCRIPTION
.PP
\f[B]trash\f[R] is a Freedesktop.org compliant command line trash tool.
You can use it to put files into a \[lq]trash\[rq] bin, where they can
later be restored or permanently deleted.
.SH OPTIONS
.TP
\f[B]-h\f[R], \f[B]--help\f[R]
Print the usage and exit.
.TP
\f[B]-v\f[R], \f[B]--verbose\f[R]
Print extra information while running.
.TP
\f[B]-i\f[R], \f[B]--interactive\f[R]
Ask for confirmation on each file.
.TP
\f[B]-l\f[R], \f[B]--list\f[R]
List the files currently in the trash, as well as how long ago they were
trashed.
.TP
\f[B]-u\f[R], \f[B]--untrash\f[R] [\f[I]file\f[R]]
Restore a file from the trash to its original location.
If an argument is provided, it will be used for fuzzy matching,
otherwise, the file will be user-selected from a list of trashed files
via \f[B]fzf\f[R].
.TP
\f[B]-e\f[R], \f[B]--empty\f[R]
Permanently delete the files in the trash.
.TP
\f[B]-f\f[R], \f[B]--force\f[R]
Don\[cq]t bother asking for any confirmations.
.TP
\f[I]files\&...\f[R]
The files to delete.
.SH EXAMPLES
.PP
Send some files and folders to the trash:
.RS
.PP
\f[B]trash foo.txt baz/\f[R]
.RE
.PP
Restore \f[I]foo.txt\f[R] from the trash (assuming there are no other
trashed files matching that pattern):
.RS
.PP
\f[B]trash -u foo.txt\f[R]
.RE
.PP
Empty the trash:
.RS
.PP
\f[B]trash -e\f[R]
.RE
.SH AUTHORS
Bruce Hill (\f[I]bruce\[at]bruce-hill.com\f[R]).