-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
27 lines (23 loc) · 960 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
This is a utility that is meant to replace the default rm command in BASH. It moves
files to a folder (~/.trash) instead of deleting them. Thus, you can undelete files
easily with the command
`tr -u`.
The program shouldn't be slower than actual deletion, and the trash can be emptied when
it fills up, with
`tr -e`.
The trash folder is initialized in ~/.trash, with the logfile ~/.trash/TRASH_LOG.log.
This can easily be changed by editing the TRASH variable in the source.
-------------------------------------------------------
Usage:
Detailed options can be seen with
tr -h
But, standard usage is
tr FILE1 FILE2 ...
to delete regular files, and
tr -r DIR1 DIR2 ...
to delete directories.
The trash can be cleaned out with
tr -e
and the most recently deleted file can be undeleted to the original location with
tr -u
After this file is restored, the next file can be undeleted.