Home>Article>Operation and Maintenance> What is the bin file in linux
The bin file in Linux is a binary executable file. The bin directory places files based on value encoding. You can specify what a certain value means according to the specific application, such as cp, mv, mkdir, chmod, chown etc.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
What is the bin file in Linux
The bin directory under the Linux system is a binary executable file.
/bin directory places the executable files of some of the most basic commands, such as cp, mv, mkdir, chmod, chown, etc.;
There is also a bin directory under /usr :/usr/bin, the files in it are also executable files of some commands;
If it is a software installed by the user, the main program file of the software will be in /usr/local/bin In this directory (or the installation directory specified by the user, such as /usr/local/apache/bin). Such as /usr/local/apache/bin).
The Linux bin directory is full of binary executable files. The bin directory contains executable files for some of the most basic commands, such as cp, mv, mkdir, chmod, chown, etc. There is also one under /usr bin directory, the files in it are also executable files of some commands.
Simply put, text files are files based on character encoding. Common encodings include ASCII encoding, UNICODE encoding, etc. Binary files are files based on value encoding. You can specify what a certain value means according to the specific application (such a process can be regarded as custom encoding). As can be seen from the above, text files are basically fixed-length encoded. Based on characters, each character is fixed in the specific encoding. ASCII code is an 8-bit encoding, and UNICODE generally occupies 16 bits. Binary files can be regarded as variable-length encoding, because it is value encoding. How many bits represent a value is entirely up to you.
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of What is the bin file in linux. For more information, please follow other related articles on the PHP Chinese website!