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
Post a Comment