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

How to check the installation location of software in Linux

王林
Release: 2020-03-12 17:34:54
Original
2798 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template