Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goto-bus-stop/soft-rm
Basic command line recycle bin
https://github.com/goto-bus-stop/soft-rm
Last synced: about 22 hours ago
JSON representation
Basic command line recycle bin
- Host: GitHub
- URL: https://github.com/goto-bus-stop/soft-rm
- Owner: goto-bus-stop
- License: mit
- Created: 2015-02-05T12:23:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-05T12:43:25.000Z (almost 10 years ago)
- Last Synced: 2024-04-14T07:46:39.025Z (7 months ago)
- Language: Shell
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
soft-rm
-------`soft-rm` is a small wrapper around `rm` that does not remove files. It's like a recycle bin for the command line.
## Usage
* `soft-rm file` "soft-deletes" the given file.
* `soft-rm --restore file` restores the given file, if possible.
* `soft-rm --flush file` actually, irreversibly, for-real deletes a previously soft-deleted file.
* `soft-rm --restore-all` restores all soft-deleted files.
* `soft-rm --flush-all` actually, irreversibly, for-real deletes all previously soft-deleted files.You can also add `soft-rm --flush-all` to your init scripts if you like.
## Limitations (for now)
* does not work across file systems
* "trash" directory is not configurable
* does not support most of the `rm` cli arguments (including useful stuff like `-r`)## Licence
[MIT](LICENSE)