Linux Check the installation location of the software simple method

Linux Check the installation location of the software simple method

1. Check the software installation path:

There is more than one place where Linux software can be installed. Let’s first check all the paths (addresses) where the software is installed.

Here we take Mysql as an example. For example, if I have 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 file paths.

whereis MySQL

Press Enter. If you have installed MySQL, the address where the file is installed will be displayed, such as mine (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 don't have mysql installed, the file path will not be displayed.

2. Query the path where the running file is located:

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

which MySQL

The result will be:

/usr/bin/MySQL

Content Extension

4 ways to view software installation directory and location in Linux

Speaking of three methods, they are nothing more than a few commands under Linux, find, whereis, which, locate are all OK, especially the first two commands are better.

This is the end of this article about a simple method to check the installation location of software in Linux. For more information about how to check the installation location of software in Linux, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

<<:  JavaScript Basics: Error Capture Mechanism

>>:  Analysis of SQL integrity constraint statements in database

Recommend

Summary of 10 amazing tricks of Element-UI

Table of contents el-scrollbar scroll bar el-uplo...

XHTML introductory tutorial: text formatting and special characters

<br />This section introduces how to impleme...

Linux file system operation implementation

This reading note mainly records the operations r...

The complete implementation process of Sudoku using JavaScript

Table of contents Preface How to solve Sudoku Fil...

An example of using Dapr to simplify microservices from scratch

Table of contents Preface 1. Install Docker 2. In...

Detailed explanation of docker's high availability configuration

Docker Compose Docker Compose divides the managed...

Mysql sql slow query monitoring script code example

1. Modify my.cnf #The overall effect is that both...

JavaScript to achieve Taobao product image switching effect

JavaScript clothing album switching effect (simil...

Do you know how many connections a Linux server can handle?

Preface First, let's see how to identify a TC...

Solve MySQL deadlock routine by updating different indexes

The previous articles introduced how to debug loc...

Vue implements tree table

This article example shares the specific code of ...

Detailed analysis of MySQL optimization of like and = performance

introduction Most people who have used databases ...

The meaning and calculation method of QPS and TPS of MySQL database

When doing DB benchmark testing, qps and tps are ...

MySQL data backup and restore sample code

1. Data backup 1. Use mysqldump command to back u...