Skip to content

KevinGimbel/rms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

rms

remove safely

rms is a command line utility that moves the file or folder to the /tmp/rms directory instead of deleting them directly so they can be restored if needed. On most operating systems the /tmp/ directory is flushed so your files are only removed once the system reboots.

Install

Clone the repo somewhere on your system, make the rms file executable and link it to a place inside your path if it isn't already. You can see your path by executing echo $PATH.

$ cd some/path/on/your/system
$ git clone https://github.com/kevingimbel/rms
$ chmod +x rms
# Link into your PATH if it is not already.
$ (sudo) ln -s /home/kevin/apps/scripts/rms /usr/local/bin/

Usage

Call rms file.txt to remove file.txt, call rms recover file.txt to recover it.

$ rms myfile.md

$ rms --usage
  --usage   | usage   | -u Display usage info
  --version | version | -v Show version
  --recover | recover | -r Recover a file from /tmp/rms

About

💻 Instead of irrecoverably removing files just move them to /tmp/ where they're deleted on reboot.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages