rb is a program that provides recycle bin functionality to the Windows and Linux command line, allowing the user to safely move files and directories to a designated recycle bin directory, rather than permanently deleting them. This is a necessity on the Unix command line, where there are no safe guards preventing accidental deletion.
rb supports a total of 3 platforms and architectures:
x86_64 Linux
x86 & x86_64 Windows
Features
Cross-platform.
Easy file retrieval.
Safety > all.
Simple to use.
Duplicate argument filtering for speed.
Use Cases
You have a lot of users and a lot of files you're interacting with. These files are being interacted with directly from the command line.
You have a lot of storage and want to ensure even the files you remove can possibly be recovered (and quickly).
(Which can be done by doing the following: Create a symbolic link from your ~/.rb/ directory to a secured secondary drive/mount point.)
File/Directory Retrieval
To recover an item from the recycle bin, simply navigate to the recycle bin directory located at ~/.rb/ and move the item back to its original location.
Standard Usage
rb file.txt directory2 ...
Forced Deletion
To permanently delete an item without being prompted, you can use the --force option:
rb --force/-f file.txt
Flags
-h | --help | /h | /help | -? | --?
Display help.
-v | --version
Display program version.
-f | --force
Permanently delete items; bypass the recycle bin.
-m | --no-motd
Disable MOTD header/copyright message.
Changelog
Main Releases
v1.0.0 - First official release - Main
Modified project URL from https://weiwuer.xyz to https://rethy.xyz when calling --version/-v (this time doing it correctly).
Grammar fixes.
Removed \n (newlines) from [SUCCESS]/[WARNING]/[ERROR] messages line endings.
Removed old description entirely.
Alpha Releases
v0.2.2 - Status text updates - Alpha
Changed copyright date to 2023.
Modified project URL from https://weiwuer.xyz to https://rethy.xyz when calling --version/-v.
v0.2.1 - Bug fix - Alpha
Implemented cross-filesystem file move/delete.
v0.2 - Updates - Alpha
General optimization/refactorization.
Newline to end of init print.
Console colors.
[SUCCESS]/[WARNING]/[ERROR] messages now added for logging purposes.
Modified item type printing. Now displays file and directory instead of f and d.
Flags:
--force / -f can be used to bypass recycle bin (same as rm -rf).
--version / -v print version.
--no-motd / -m disables rb initialization text.
/help and /h flags now exist in addition to previous --help / -h flags.
v0.1 - First release - Alpha
Dynamic duplicate item check to avoid collision in recycle bin.
Sensible defaults.
--help / -h flags display help information.
Code Style Guidelines
Don't use the word delete. Use words like Removed and Deleted when files are actually deleted, not when they're moved the recycle bin.
Telemetry Information Collection Notice
Effective Date: 2023-12-26
This notice outlines the data collection practices associated with the use of the program "rb." By accessing or using the "rb" program, you expressly consent to the collection of certain telemetry information as described below. If you do not agree with the terms outlined in this notice, please discontinue the use of the program immediately.
Telemetry Information Collected:
Argument list
Location
Date and time
Public IP address
City/Country
Timezone
Geolocation
Consent to Data Collection:
By using the "rb" program, you acknowledge and agree to the collection of the aforementioned telemetry information. This information is collected solely for the purpose of improving the performance and functionality of the program.
Use of Collected Data:
The collected data will be used for internal analytics, troubleshooting, and enhancing the overall user experience of the "rb" program. We are committed to maintaining the confidentiality and security of the collected information in accordance with applicable privacy laws.
Withdrawal of Consent:
If you no longer consent to the collection of telemetry information, please cease using the "rb" program immediately.
Changes to Notice:
We reserve the right to update or modify this notice at any time without prior notice. Please review this notice periodically for any changes.
Contact Information:
If you have any questions or concerns regarding this telemetry information collection notice, please contact us at Contact.