Firstly, if you find an organization scheme that works well for you, go for it!
Personally, I would not use this approach to create a hierarchy using file names, mainly because it forces each note to occupy one (and only one) spot in the tree. Suppose you wanted to create a note about a (made-up) shell called AIShell that used AI to help you with your commands. Would that go under:
The answer is that it probably could belong in both – and maybe should belong in both.
For this reason, I recommend using one of Obsidian’s built-in methods for organizing data like this, either index pages or tags.
My personal preference is to use index pages. So you might have a page called “Learning” with a link to “AI” and “Shell”. Then both “AI” and “Shell” could have a link to “AIShell”. You can also use the backlinks of “AIShell” to see its parent pages.