Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is /snap/bin directory in $PATH? Can I remove it from $PATH?

Tags:

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?

like image 338
mora Avatar asked Aug 16 '16 14:08

mora


People also ask

What is the snap directory?

The /snap directory is, by default, where the files and folders from installed snap packages appear on your system.

What is a bin directory path?

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.


1 Answers

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.

like image 140
Dirk Eddelbuettel Avatar answered Sep 21 '22 17:09

Dirk Eddelbuettel