-
Notifications
You must be signed in to change notification settings - Fork 0
Utitlity that implements a CLI trash folder with undo history
License
ClaytonMcCray/fakeRM
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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.
About
Utitlity that implements a CLI trash folder with undo history
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published