https://github.com/kevingimbel/rms
:computer: Instead of irrecoverably removing files just move them to /tmp/ where they're deleted on reboot.
https://github.com/kevingimbel/rms
file-deletion shell-script
Last synced: 3 months ago
JSON representation
:computer: Instead of irrecoverably removing files just move them to /tmp/ where they're deleted on reboot.
- Host: GitHub
- URL: https://github.com/kevingimbel/rms
- Owner: KevinGimbel
- Created: 2016-01-21T13:18:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-26T10:12:38.000Z (over 9 years ago)
- Last Synced: 2025-01-17T17:35:10.395Z (4 months ago)
- Topics: file-deletion, shell-script
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`.
```bash
$ 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.```bash
$ 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
```