linux Easy way to see where software is installed

  • 2021-07-24 12:08:12
  • OfStack

1. View the software installation path:

Linux software is installed in more than one place. First, check all the paths (addresses) of software installation.

Take Mysql as an example. For example, I installed Mysql, but I don't know where the files are installed and in which folders. I can use the following command to view all the file paths.


whereis MySQL

Enter, if you have installed Mysql, it will show the file installation address, such as my display (the installation address may be different)

mysql: /usr/bin/mysql /usr/lib/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz

As you can see, mysql is installed in these directories.

If you do not install mysql, the file path will not be displayed.

2. Query the path of the running file:

If you only need to query the address of the running file of the file, just use the following command (still take Mysql as an example):


which MySQL

The result will show:

/usr/bin/MySQL

Content extension

Linux 4 Ways to View Software Installation Directory and Location

Speaking of three methods, it is nothing more than a few commands under Linux, find, whereis, which and locate can all be used, especially the first two commands are better.


Related articles: