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

Where is the software installation directory in centos system?

王林
王林Original
2020-05-18 13:47:108034browse

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 <目录>...][文件...]

Common parameter description:

-b Only search binary files.

-B 7b799fe73e35dcfdc019b13f54de80e5 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 7b799fe73e35dcfdc019b13f54de80e5 Only search for description files in the set directory.

-s Only search original code files.

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

For example:

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

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!

Statement:
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