CAN
Section: User Commands (1)
Index
Return to Main Contents
NAME
can - a replacement for rm that is safe
SYNOPSIS
can [ ivlrR ] <file | directory> ...
DESCRIPTION
Can
is often an alias of
rm(1).
Can
works similiarly, with the exception of putting things into a directory, in
your home directory, called ".trashcan."
The
-i
option makes it interactive, querying for each "can"-ing.
The
-v
option gives a verbose following of all activities of this command.
The
-l
option will give you a listing of the "$HOME/.trashcan"
directory.
The
-r
option works recursively just the same as
rm(1).
The
-R
option will retrieve a file from the "$HOME/.trashcan" without the hassle
of looking for it. The
-R
option copies the file from the "$HOME/.trashcan" directory into the
present working directory. This can only recover one file at a time and
is the only option that requires an argument. You should
note that
-R
will destroy the file in the working directory if it has the same name
as the file that is being recovered, so use with caution.
You cannot use
-r
and
-R
in the same command and the file to be recoved must not have a directory
name in it.
The trash gets dumped everyday but only gets rid of things that
are more than a week old. In other words, you have a week to get something
back after you have
can
ned it.
FILES
- $HOME/.trashcan
-
The reservoir of canned files
SEE ALSO
emptytrash(8), rm(1)
BUGS
The
-R
option does not work on wild cards. You have to know the
exact name of a file in order to recover it with this command.
If further bugs are found please report them.
AUTHOR
The Bit Butcher
Inspired by the original
can
which was written by a Russ Sage.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- FILES
-
- SEE ALSO
-
- BUGS
-
- AUTHOR
-
This document was created by
man2html,
using the manual pages.
Time: 07:13:34 GMT, December 12, 2024