How do I know which identity files I am using?

Hello, I am doing a migration of my node, but I ran into a problem, I have several folders with identity files, how can I actually know which ones are being used by my node? Thank you

Stop all nodes and rename all identity folders as 1 2 3 etc.
Then revert the naming for one at a time and start one node. If the node fails to start with errors in log, move to the next ID folder and so on. See which one is which.

Path to the identity is passed to the node as a command line argument. You can inspect the processes to see which path is provided to which node process with something like ps auxww | grep storagenode