In the latter case, with default Neo4j configuration, the file has to be in the /imports folder. Finding this folder is straightforward with Neo4j Desktop:
- Click on the Manage button on the graph you are interested in.
- Identify the Open folder button at the top of the new window.
- Click on the arrow next to this button and select Import.
This will open your file browser inside your graph import folder.
If you prefer the command line, instead of clicking on Open Folder, you can use the Open Terminal button. In my local Ubuntu installation, it opens a session whose working directory is as follows:
~/.config/Neo4j Desktop/Application/neo4jDatabases/database-c83f9dc8-f2fe-4e5a-8243-2e9ee29e67aa/installation-3.5.14
The path on your system will be different since you will have a different database ID and maybe a different Neo4j version.
This directory structure is as follows:
$ tree -L 1
.
├── bin
├── certificates...