Debug School

rakesh kumar
rakesh kumar

Posted on • Updated on

Linux:how to find path where mysql installed in linux

how-to-find-a-folder-in-linux-using-the-command-line

You can find the path where MySQL is installed on a Linux system by using the following command in your terminal:

which mysql
Enter fullscreen mode Exit fullscreen mode

Image description

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
Enter fullscreen mode Exit fullscreen mode
find /home -type f
Enter fullscreen mode Exit fullscreen mode

Image description

Image description

# find / -type d -name "etc"
Enter fullscreen mode Exit fullscreen mode

OR

$ sudo find / -type d -name "etc"
Enter fullscreen mode Exit fullscreen mode

OR

$ sudo find / -type d -iname "etc"
Enter fullscreen mode Exit fullscreen mode

Top comments (0)