Home > Article > Operation and Maintenance > Where is the opt directory in linux?
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.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
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:
##/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: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!