Home > Article > Operation and Maintenance > What directory stores basic Linux commands?
The "/bin" directory stores basic Linux commands. The bin directory is mainly used to place necessary executable files for the system, such as cat, cp, chmod, kill, etc. Similar to this, there is the "/sbin" directory, which mainly contains necessary programs for system management, such as cfdisk, dhcpcd, fdisk, etc.
#The "/bin" directory stores basic Linux commands.
(Recommended tutorial: linux tutorial)
Related introduction:
In the Linux system, there are two important directories: bin and sbin. Including /bin, /usr/bin/ and /sbin, /usr/sbin/ respectively.
bin directory:
bin is the abbreviation of binary, which mainly places the necessary executable files of the system, such as: cat, cp, chmod df, dmesg, gzip, kill , ls, mkdir, more, mount, rm, su, tar, etc.
/usr/bin directory:
Mainly places the necessary executable files of application tools, such as: 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 directory:
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 directory:
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.
The above is the detailed content of What directory stores basic Linux commands?. For more information, please follow other related articles on the PHP Chinese website!