#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
-f Does not display the path name before the file name.
-m Only search documentation.
-M
-s Only search original code files.
-S
-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!