Friendly Reminder

asyork

2[H]4U
Joined
Jan 3, 2002
Messages
2,059
I bring you a friendly reminder to always check what you typed before hitting enter.

Especially when you are typing in the console emulator.

Even more so when you are executing the command as a root user.

And to never, ever hit enter after accidentally hitting " " instead of "/" early on in a path preceded by "rm -rf"

I just managed to do this:
su
rm -rf /data/data com.android.providers.telephony/

Notice the space. /data/data is now gone :(
It sure is a good thing I backed up /data/data/com.android.providers.telephony/...
 
I'd put an alias which does essentially nothing (some echoed text) as rm; then one has to "/bin/rm" or whatever your path may be to actually use the command. Those extra keystrokes seem to slow down the process of typing the entire line, giving a few extra seconds of "think before pressing ENTER..." ( Been using that setup for about six or more years...)
 
Back
Top