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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -