I wanted to install the tree command to look at /var/www. I can ls /var/www and the directories it contains. Permissions on those directories are set to 755.
I ran
sudo snap install tree
thereafter running
tree /var/www
returns the message
/var/www [error opening dir]
I removed the tree snap with
sudo snap remove --purge tree
...and installed tree with
sudo apt install tree
Now when I try to use tree I get
-bash: /snap/bin/tree: No such file or directory
How to I banish the snap version of tree from my machine completely?