Home  >  Article  >  Operation and Maintenance  >  Where is the opt directory in linux?

Where is the opt directory in linux?

WBOY
WBOYOriginal
2022-07-21 16:31:1215465browse

In Linux, the location of the opt directory is in the main directory, that is, "/opt"; opt is the abbreviation of optional, which means "optional". It is placed for additional installation of software on the host. The directory, used to install additional software packages, is the user-level program directory, such as any external or third-party software.

Where is the opt directory in linux?

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

Where is the opt directory in Linux

In Linux, the location of the etc directory is in the main directory, that is, "/etc";

Check the location of the etc directory in the main directory The directory is as follows:

After logging in to the system, enter the command in the current command window:

 ls /

You will see the following picture:

Where is the opt directory in linux?

##/opt:

opt is the abbreviation of optional, which is the directory where additional software is installed for the host. For example, if you install an ORACLE database, you can put it in this directory. The default is empty. The

/opt directory is used to install additional software packages. It is a user-level program directory and 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-scale 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.

Expand knowledge

The following is an explanation of the directory:

/bin:

bin is the abbreviation of Binaries (binary files). This directory stores the most commonly used commands.

/boot:

Stored here are some core files used when starting Linux, including some connection files and image files.

/dev:

dev is the abbreviation of Device. This directory stores Linux external devices. How to access the device in Linux and how to access it. The way to file is the same.

/etc:

etc is the abbreviation of Etcetera (etc.). This directory is used to store all configuration files and subdirectories required for system management.

/home:

The user’s home directory. In Linux, each user has his own directory. Generally, the directory name is named after the user’s account. , such as alice, bob and eve in the picture above.

/lib:

lib is the abbreviation of Library (library). This directory stores the most basic dynamic link shared library of the system, and its function is similar to that in Windows. DLL files. Almost all applications require these shared libraries.

/lost found:

This directory is usually empty. When the system is shut down illegally, some files are stored here.

/media:

The Linux system will automatically recognize some devices, such as U disks, optical drives, etc. After recognition, Linux will mount the recognized devices to under this directory.

/mnt:

The system provides this directory to allow users to temporarily mount other file systems. We can mount the optical drive on /mnt/, Then enter the directory to view the contents of the CD-ROM drive.

Recommended learning:

Linux video tutorial

The above is the detailed content of Where is the opt directory in linux?. 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