How to find files in Ubuntu
In this I’m looking for the SDL2 header files. These are installed when you install libsdl2-dev as we saw yesterday.
While you can do it from a terminal with the find command, I find it easier to do it from the GUI. We need the Files utility which you get by clicking on this icon on the left toolbar. Now click Other Locations on the left and you should see something like this.
Click Computer. This will let you search through the entire Linux file tree.
Click on the magnifying glass icon and in the text box that appears type in sdl2 and press enter. It will spend a few seconds or minutes searching and then find a number of files/folders.
The first result was SDL2 and the usr/include is a big clue. Double-click on this and it will open on a folder full of header files!That’s what we want.
When you are configuring gcc/clang and want to add paths for include files like SDL2, it’s important to know where those files are located.