1. Before performing any critical actions, save your data in a back-up disc first 😉

2. anon

1. open up .bashrc
2. create the alias:
alias rm=’rm -i’
alias cp=’cp -i’
alias mv=’mv -i’

now everytime you do this, it’ll double-check what files you want to delete. if you’re feeling dangerous some day and don’t feel like pressing ‘y’ a bunch of times, simply run the command as follows to have it delete the files without asking:

$\rm * (ie: add a backslash before rm) • Thanks for this anon. I’m sure this will help not only me but the rest of readers of this blog as well. Nice one. 3. Christian I eventually ran in this problem too. now, what I do to avoid this problem is, after peeking into a directory like  me@localhost:~/important$ ls unimportant 
deleting the directory with
 me@localhost:~/important$rm -rf !$ 
the “!$” is a special variable referencing to the last argument in the previous command. It’s also very useful if you ls-ed for some specific files and want to delete them. • Thanks for that Christian. I never thought of using !$. I learned from your response. Thanks for that. A new lesson for me –> !\$

4. Jameson

How do I open the command

• Hi Jameson, thanks for commenting.
Which command?