You can find the path where MySQL is installed on a Linux system by using the following command in your terminal:
This will return the path of the mysql executable, typically something like /usr/bin/mysql
Consider the following directory structure:
/ home/ user1/ file1.txt file2.txt user2/ file3.txt
find /home -type f
# find / -type d -name "etc"
$ sudo find / -type d -name "etc"
$ sudo find / -type d -iname "etc"