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:
alias python=python3.6
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?
alias python=python3.6
in~/.bash_aliases
. Checkwhich python
,which python3
,which python3.6
, & I think the output will show the problem. – Prem Feb 24 '17 at 03:01