
rmv
RMV /remove/
Usage: rmv [
OPTIONS...]
[
FILE...]
or rmv OPTION
Move FILEs into the freedesktop.org-standard 'Desktop Trash' basket rather than permanently remove it.
This simple BASH script allows you to use the basic functionalities of a 'trash basket' in the commandline. RMV can be considered as one implementation to the Desktop Trash Spec(Freedesktop.org - a.k.a XDG), and of course, co-works well with the common GUI file managers like Nautilus, Thunar, Konqueror, etc(literally ANY file managers which features the Desktop Trash Spec).
In addition to the standard features, RMV offers some useful extra functions which make your commandline more safe and convenient. RMV is such a fine REPLACEMENT TO THE OLD RM COMMAND.
The main features of RMV command are:
Features
Easy to remove
RMV has simplified usages. Forget the bothersome '-r' option to delete your directory, just type like this: 'rmv myfile mydir/ manyothers*
...'.
Safe to remove
RMV has disaster-free roll-back features. Don't panic for 'rmv my_damn_important*
'! Just say oops and type 'rmv -'. Your DAMN important things will be restored on the original path immediately. You can also use RMV's own Log to restore a couple of the important things which were RMVed together. First review your Log by typing 'rmv --log', then just do 'rmv -R ##'(## - a log number).
Trash management
RMV can be used as a trash manager for your desktop. You can empty your trash basket entirely or selectively(by date or file size etc... not finished yet) easily. Instead of 'Open a GUI file manger -> Find 'Trash' - Right click on the trash - Choose 'Empty Trash' menu', just command 'rmv -E'.
Installation and help message
Recommended way for installation:
$ wget http://rmv.googlecode.com/files/rmv # Or download the latest release from 'Downloads' menu.
$ chmod +x rmv ;mv rmv ~/bin
$ rmv # First run for the initialization.
Help message of the current version looks like this: ``` $ rmv --help Usage: rmv [OPTIONS...] [FILE...] or: rmv OPTION Move FILEs into the freedesktop.org-standard 'Desktop Trash' basket rather than permanently remove it. Current version of the 'Desktop Trash Specification(http://www.freedesktop.org/wiki/Specifications/trash-spec)' is mostly implemented, with some commandline-specific extra features.
[Options] -|-1 : Restore the last RMVed files. -f|-fr|-rf|--force : Permanent removal. Same as classical 'rm -fr'. -l|--log : Show the Log directory (/home/joe/.rmvlog). -L|-ll|--llog : Show the Log in detail. -t|--trash : Show the Trash (/home/joe/.local/share/Trash/files). -T|-tt|--ttrash : Show the Trash in detail. -r|-u|--restore|--unremove : Restore FILEs from Trash (use file name). -R|-U|-N|--nrestore|--nunremove : Restore from Trash (use Log). -E|--empty-trash : Empty Trash basket and clear Log. -C|--clear-log : Clear Log. -h|--help : Show this help message. -v|--version : Show version information. ```
RMV in action
See Examples.
Project Information
- License: GNU GPL v3
- svn-based source control
Labels:
rm
mv
UNIX
LINUX
bash
shellscript
XDG
Freedesktop
Trash
commandline