Confirm File Deletions in Qshell
August 2, 2002 Timothy Prickett Morgan
Hey, Ted:
I accidentally deleted a file in Qshell. I know about the -i option for the rm command, but I forget to use it. Is there any way I can make the -i option the default setting?
|
— Lynn
Use an alias, Lynn. An alias is an alternate name for a command string.
Add the following line to the .profile file in your home directory.
alias rm='rm -i'
If you want to change the default for all users, edit /etc/profile instead.
When you run the rm command, Qshell will substitute rm -i for the rm you type. You will