linux - How do I configure my "mv" command to include "-i" option even when I forgot it? -


i want configure mv command implicitly include "-i" default.

sometimes forgot use , mess files...

adding answer include unaliasing option, need add ~/.bashrc or ~/.zshrc based on login shell permanent alias.

alias mv="mv -i" 

then can source take effect on current login

source ~/.bashrc  

or logoff , login again or open new shell interactive behavior

sometimes, if want disable behavior temporarily, can

\mv file1 file2  

Comments

Popular posts from this blog

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -