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

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -