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

In which folder is the software installed on centos?

WBOY
Release: 2022-04-01 15:44:40
Original
11284 people have browsed it

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

Common parameter description:

  • -b Only search binary files.

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