Home > Operation and Maintenance > CentOS > Where is the software installation directory in centos system?

Where is the software installation directory in centos system?

王林
Release: 2020-05-18 13:47:10
Original
8142 people have browsed it

Where is the software installation directory in centos system?

#The default installation directory of software in centos system is generally in /usr/local or /opt.

We can also view the actual installation path of the software through the whereis command.

Command: whereis

Function introduction: Find files that meet the conditions in a specific directory. These files should be source code, binary files, or help files.

Syntax format:

whereis [-bfmsu][-B <目录>...][-M <目录>...][-S <目录>...][文件...]
Copy after login

Common parameter description:

-b Only search binary files.

-B Only search for binary files in the set directory.

-f Does not display the path name before the file name.

-m Only search documentation.

-M Only search for description files in the set directory.

-s Only search original code files.

-S Only search the original code files in the set directory.
-u Find files that do not contain the specified type.

For example:

#whereis  软件名   -->查看软件安装路径
#which  软件名     -->软件软件的运行路径
Copy after login

Recommended tutorial: centos tutorial

The above is the detailed content of Where is the software installation directory in centos system?. 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