I deleted my aliases file, but my aliases are still in my bash session - how can I recover them?
Simply use the command alias
which prints out all definitions in a format bash
can read in again:
$ alias
alias second='again'
alias test='hello'
So to recover, simply use
$ alias > .bash_aliases