I had written procedure for myself on how to deploy a web app, and it contains a step that says to do this:
vi ~/.bash_aliases i alias python=python3 Esc :wq
This step worked a few months ago on a different instance of Debian Jessie. Today, it wasn't working. After some searching, I found that simply running this works:
My question is, what's the difference between these two methods, and any other possible methods of creating aliases? Do they all have the same end-result or are there any subtle differences in functionality/performance? Which method should I be using?