Home>Article>Operation and Maintenance> What file format is stored in bin in linux
In Linux, the binary executable file format is stored in the bin file; the executable files of the most basic commands are placed in the bin directory. The purpose of the binary file depends on the system or application. , if the software is installed by the user himself, the main program file of the software will be in the directory "/usr/local/bin".
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
The bin directory under the Linux system is full of binary executable files.
/bin directory places the executable files of some of the most basic commands, such as cp, mv, mkdir, chmod, chown, etc.;
/usr is also there A bin directory: /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/ In the local/bin directory (or the installation directory specified by the user, such as /usr/local/apache/bin). Such as /usr/local/apache/bin).
Binary files, their use depends on the system or application. Abbreviation for binary file format. A file with the suffix ".bin" just indicates that it is in binary format
Extended knowledge
In the Linux system , there are two important directories: bin and sbin, including /bin, /usr/bin/ and /sbin, /usr/sbin/ respectively.
bin:
bin is the abbreviation of binary, which mainly places the necessary executable files of the system, for example:
cat, cp, chmod df, dmesg, gzip, kill, ls, mkdir, more, mount, rm, su, tar, etc.
/usr/bin:
Mainly places the necessary executable files of application tools, for example:
c, g, gcc, chdrv, diff, dig, du, eject, elm, free, gnome*, gzip, htpasswd, kfm, ktop, last, less, locale, m4, make, man, mcopy, ncftp , newaliases, nslookup passwd, quota, smb*, wget, etc.
/sbin:
Mainly places necessary programs for system management, such as:
cfdisk, dhcpcd, dump, e2fsck, fdisk, halt, ifconfig, ifup, ifdown, init, insmod, lilo, lsmod, mke2fs, modprobe, quotacheck, reboot, rmmod, runlevel, shutdown, etc.
/usr/sbin:
Mainly places necessary programs for network management, such as:
dhcpd, httpd, imap, in.*d, inetd, lpd, named, netconfig, nmbd, samba, sendmail, squid, swap, tcpd, tcpdump, etc.
/bin,/sbin,/usr The difference between /bin and /usr/sbin
/ : this is root directory root 用户根目录 /bin : commands in this dir are all system installed user commands 系统的一些指令 /sbin: commands in this dir are all system installed super user commands 超级用户指令 系统管理命令,这里存放的是系统管理员使用的管理程序 /usr/bin: user commands for applications 后期安装的一些软件的运行脚本 /usr/sbin: super user commands for applications 超级用户的一些管理程序 /usr/X11R6/bin : X application user commands /usr/X11R6/sbin: X application super user commands
Recommended learning:Linux video tutorial
The above is the detailed content of What file format is stored in bin in linux. For more information, please follow other related articles on the PHP Chinese website!