How do I escape backticks as below:
root:~#
root:~# cat .bash_aliases
alias clean='docker rm `docker ps -aq`'
root:~#
see also:
https://stackoverflow.com/q/1250079/4531180
and
https://stackoverflow.com/a/56674658/4531180
for possible alternate syntax of:
docker rm $(docker ps -a -q)
docker ps -aq
which I couldn't get into the alias. – Nicholas Saunders Sep 01 '20 at 08:03alias clean='docker rm `docker ps -aq`'
and it will function identically to what you have in the answeralias clean='docker rm $(docker ps -aq)'
– muru Sep 01 '20 at 08:06