The method of checking the installation location of Software by linux
Today, the editor to share with you is the linux to view the software installation location, many people do not understand, today, in order to let you know more about the linux to view the software installation location, so give you a summary of the following content, let's look down. I'm sure you'll get something.
First, check the software installation path:
Linux software is installed in more than one place, let's first check all the paths (addresses) where the software is installed.
Take Mysql as an example. For example, I installed Mysql, but I don't know where the files are installed or in which folders. You can check all the file paths with the following command.
Whereis mysql
Enter, if you have installed Mysql, the installation address of the file will be displayed, 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 have mysql installed, the file path will not be displayed.
Second, query the path where the running file is located:
If you only need to query the address where the file is running, you can simply use the following command (or take Mysql as an example):
Which mysql
The results show:
/ usr/bin/mysql
The above is a brief introduction to the method of linux to view the location of software installation, of course, the detailed use of the above differences still need to be used by everyone to understand. If you want to know more, welcome to follow the industry information channel!