Home  >  Article  >  Operation and Maintenance  >  How to check the installation location of software in Linux

How to check the installation location of software in Linux

王林
王林Original
2020-03-12 17:34:542730browse

How to check the installation location of software in Linux

1. Check the software installation path:

Linux software is installed in more than one place. Let’s first check all the paths (addresses) of the software installation.

(Recommended tutorial: linux tutorial)

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

whereis mysql

Press Enter. If you have installed Mysql, the address of the file installation will be displayed. For example, 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

It can be seen that 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 want to query the address of the running file, just use the following command (again, take Mysql as an example):

which mysql

The result will be displayed:

/usr/bin/mysql

Recommended related video tutorials: linux video tutorial

The above is the detailed content of How to check the installation location of software in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn