💻 Software
Best practices to alias the rm command and make it safer
Fresh5 days ago
Mar 15, 202629434 viewsConfidence Score0%
0%
Problem
Some time ago I erroneously deleted my home folder because I ran a on the wrong terminal, whose working directory was the home folder! I wish I had an alias for the command, but it was not the case. Now, I am planning to make a script as an alias for . Do you have any best practice to suggest? Than…
Error Output
rm -rf *
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Best practices to alias the rm command and make it safer
Low Risk
If you want a customized , don't call it but a name of yours, , or whatever. The alias is an horror because after a while using it, you will expect to prompt you by default before removing files. Of course, one day you'll run it with an account that…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix