Folder locations of three Arduino library places

At the end of https://www.arduino.cc/en/Guide/Libraries its states:

Please note: Arduino libraries are managed in three different places: inside the IDE installation folder, inside the core folder and in the libraries folder inside your sketchbook

In Arduino IDE; under File - Preferences - Settings there is a field called "Sketchbook location"

There is a folder within Sketchbook location folder called "libraries" which I believe is "the libraries folder inside your sketchbook."

On Ubuntu; how do I find the path of IDE installation folder and the core folder?

Thanks

brentgracey:
There is a folder within Sketchbook location folder called "libraries" which I believe is "the libraries folder inside your sketchbook."

Correct.

brentgracey:
On Ubuntu; how do I find the path of IDE installation folder

I'm not sure. If you downloaded the official Arduino IDE from https://www.arduino.cc/en/Main/Software, then it's wherever you extracted the downloaded archive to.

If you used a package manager, then I guess you would have to research to see where it puts things.

brentgracey:
and the core folder?

Here's a trick you can use to easily get there:

  • Select a board from the hardware package you want to find from the Tools > Board menu
  • File > Examples > SPI > BarometricPressureSensor (or any other SPI example sketch)
  • Sketch > Show Sketch Folder
  • Move up folder levels until you reach the one that contains boards.txt

You should also note that if you enable verbose output during compilation in the Arduino IDE's File > Preferences and then compile a sketch that uses libraries, the path of the libraries will be shown in the output in the black console pane at the bottom of the Arduino IDE window.

Fantastic; thank you for that detailed response; exactly the info I was looking for!!

You're welcome. I'm glad if I was able to be of assistance. Enjoy!
Per