Home >Operation and Maintenance >CentOS >In which folder is the software installed on centos?

In which folder is the software installed on centos?

WBOY
WBOYOriginal
2022-04-01 15:44:4011285browse

In centos, the software installed by the system is in the "/usr/local" or "/opt" folder. You can use the whereis command to view the actual installation path of the software. The syntax is "whereis software name". You can use the "which software name" command to view the running path of the software.

In which folder is the software installed on centos?

The operating environment of this article: centos 7 system, Dell G3 computer.

In which folder is the software installed by centos?

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

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

The command is 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 searches for binary files in the set directory.

  • -f does not display the path name before the file name.

  • -m Only search for 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 In which folder is the software installed on centos?. 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