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

uni-app implements NFC reading function

This article shares the specific code of uni-app ...

A brief talk about Rx responsive programming

Table of contents 1. Observable 2. Higher-order f...

How to install Graphviz and get started tutorial under Windows

Download and installConfigure environment variabl...

Web data storage: Cookie, UserData, SessionStorage, WebSqlDatabase

Cookie It is a standard way to save the state of ...

JavaScript to implement simple tab bar switching content bar

This article shares the specific code of JavaScri...

Use neat HTML markup to build your pages

The Internet is an organism that is constantly ev...

How to implement responsiveness in Vue source code learning

Table of contents Preface 1. Key Elements of a Re...

Vue integrates a rich text editor that supports image zooming and dragging

need: According to business requirements, it is n...

How to install openjdk in docker and run the jar package

Download image docker pull openjdk Creating a Dat...

How does the composite index of MySQL take effect?

Table of contents background Understanding compos...

Example code for implementing WeChat account splitting with Nodejs

The company's business scenario requires the ...

HTML background color gradient achieved through CSS

Effect screenshots: Implementation code: Copy code...