rip/README.org

35 lines
1.5 KiB
Org Mode
Raw Normal View History

2016-08-31 01:12:21 +00:00
* rip (Rm ImProved)
Deleted files get sent to the graveyard (=/tmp/.graveyard= by default, under their absolute path) instead of being unlinked, giving you a chance to recover them.
2016-08-31 01:12:21 +00:00
2016-09-20 04:15:55 +00:00
No data is overwritten. If files that share the same path are deleted, they will be renamed as numbered backups.
2016-08-31 01:12:21 +00:00
If you want to put the graveyard somewhere else (like =~/.local/share/Trash=), you have two options, in order of precedence:
1. Alias =rip= to =rip --graveyard ~/.local/share/Trash=
2. Set the environment variable =$GRAVEYARD= to =~/.local/share/Trash=
This can be a good idea because if the graveyard is in a tmpfs mount, deleting large files can quickly fill up your RAM. It's also much slower to move files across filesystems, although the delay should be unnoticable with an SSD.
2016-08-31 01:12:21 +00:00
2016-09-03 09:41:15 +00:00
** Installation
Get a binary [[https://github.com/nivekuil/rip/releases][release]] (x86_64) or build it with =cargo install rm-improved=.
2016-09-03 09:41:15 +00:00
** Usage
2016-08-31 01:12:21 +00:00
#+BEGIN_EXAMPLE
USAGE:
2016-09-04 14:01:00 +00:00
rip [FLAGS] [OPTIONS] <SOURCE>...
2016-08-31 01:12:21 +00:00
FLAGS:
2016-09-17 04:38:47 +00:00
--decompose Permanently delete (unlink) the entire graveyard
2016-09-04 14:01:00 +00:00
-h, --help Prints help information
2016-09-17 04:38:47 +00:00
-r, --resurrect Undo the last deletion
2016-09-04 14:01:00 +00:00
-s, --seance List all objects in the graveyard that were sent from the current directory
-V, --version Prints version information
2016-08-31 01:12:21 +00:00
OPTIONS:
--graveyard <graveyard> Directory where deleted files go to rest
ARGS:
2016-09-04 14:01:00 +00:00
<SOURCE>... File or directory to remove
2016-08-31 01:12:21 +00:00
#+END_EXAMPLE
2016-09-03 09:41:15 +00:00
*** Why is there no =--interactive= option?
2016-08-31 01:12:21 +00:00
Asking for forgiveness is easier than asking for permission.