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

Two tools for splitting the screen in the Linux command line terminal

Here are two terminal split screen tools: screen ...

Mybatis mysql delete in operation can only delete the first data method

Bugs As shown in the figure, I started to copy th...

JS implements layout conversion in animation

When writing animations with JS, layout conversio...

Design a data collector with vue

Table of contents Scenario Core Issues Status mon...

Tudou.com front-end overview

1. Division of labor and process <br />At T...

MySQL REVOKE to delete user permissions

In MySQL, you can use the REVOKE statement to rem...

C# implements MySQL command line backup and recovery

There are many tools available for backing up MyS...

How to design and optimize MySQL indexes

Table of contents What is an index? Leftmost pref...

Oracle VM VirtualBox installation of CentOS7 operating system tutorial diagram

Table of contents Installation Steps Environment ...

JS implements multiple tab switching carousel

Carousel animation can improve the appearance and...

How to implement web stress testing through Apache Bench

1. Introduction to Apache Bench ApacheBench is a ...

Teach you how to make cool barcode effects

statement : This article teaches you how to imple...

CSS3 analysis of the steps for making Douyin LOGO

"Tik Tok" is also very popular and is s...