Re:I Accidentally Deleted 7TB of Videos Before Going to Prod...
by maweki on Thursday May 05, 2022 @10:45AM
(#31274028)
How is the system different after the first and after the second call?
[ Parent
| on HN ]
Re:I Accidentally Deleted 7TB of Videos Before Going to Prod...
by jgoldshlag on Thursday May 05, 2022 @10:53AM
(#31274140)
If there is an rm executable in the current directory, and also one later in your PATH, the second run might use a different rm that could do whatever it wants to
Re:I Accidentally Deleted 7TB of Videos Before Going to Prod...
by dotancohen on Friday May 06, 2022 @03:35AM
(#31282397)
This is actually a likely scenario, as it is common to alias rm to rm -i. Though your bash config will still run after .bashrc is nuked, some might wrap with a script instead of aliasing (e.g., to send items to Trash).
Re:I Accidentally Deleted 7TB of Videos Before Going to Prod...
by hansel_der on Friday May 06, 2022 @05:53AM
(#31283318)
# rm rm
# rm rm
rm: command not found