I am working with environment value, $PATH. And I found that $PATH includes /snap/bin directory which does not exist. What does the path work? Can I remove it from $PATH or should I leave it? Please give me your suggestion. Thank you very much?
The /snap directory is, by default, where the files and folders from installed snap packages appear on your system.
This is a list of folders that Windows searches, in order, when it can't find a dll (say) in the current directory. So if you want to have a dll used by more than one program you could put it in a location already on the PATH or add a new folder to the PATH.
It is a new-new Canonical thing to bundle and distribute applications. See for example this developer link by Canonical.
Personally, I also find it somewhat odd that they went into the top-level via /snap
but Oh well.
I may yet come to use it one. So far plain docker
serves me well, besides of course building .deb
package the old-fashioned way.
As for removing the PATH
entry: it only saves you a few bytes, plus nanoseconds in lookups and may break a future deployment involving snaps. Your box, your call. I left mine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With