Question: how to locate command blocks in minecraft?
Answer: Go to Search > Find ( Ctrl + F ). In the popup, under Name, enter "Command", and set Value to your code snippet.