Home  >  Article  >  Operation and Maintenance  >  What partition is linux opt?

What partition is linux opt?

藏色散人
藏色散人Original
2023-03-24 10:51:042644browse

linux opt is used to install additional software packages. It is a user-level program directory, which can be understood as "D:/Software"; for programs installed in the "/opt" directory, all its data and libraries The files are all placed in the same directory.

What partition is linux opt?

#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.

What is the partition of linux opt?

What is/opt? The difference between /usr and /opt in Linux

Speaking of /opt, it is often compared with /usr:

The /opt directory in Linux is used to install additional software packages and is user-level The program directory can be understood as D:/Software. For programs installed in the /opt directory, all its data, library files, etc. are placed in the same directory.

opt means optional. It can be used to place third-party large software (or games). When you don’t need it, just rm -rf it out. When the hard disk capacity is insufficient, /opt can also be mounted separately on other disks for use.

/usr in Linux is a system-level directory, which can be understood as C:/Windows/.

The /local directory under /usr in Linux is a user-level program directory, which can be understood as C:/Progrem Files/. Software compiled by users will be installed in this directory by default.

This mainly stores software that is installed manually, that is, software that is not installed through apt-get. It has a similar directory structure to the /usr directory. Let the package manager manage the /usr directory, and place custom scripts in the /usr/local directory.

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of What partition is linux opt?. 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