Linux /bin, /sbin, /usr/bin, /usr/sbin 區(qū)別
在linux下我們經(jīng)常用到的四個應(yīng)用程序的目錄是:/bin、/sbin、/usr/bin、/usr/sbin
bin:
bin為binary的簡寫主要放置一些系統(tǒng)的必備執(zhí)行檔例如:cat、cp、chmod df、dmesg、gzip、kill、ls、mkdir、more、mount、rm、su、tar等。

/usr/bin:
主要放置一些應(yīng)用軟件工具的必備執(zhí)行檔例如c++、g++、gcc、chdrv、diff、dig、du、eject、elm、free、gnome*、 zip、htpasswd、kfm、ktop、last、less、locale、m4、make、man、mcopy、ncftp、 newaliases、nslookup passwd、quota、smb*、wget等。

/sbin:
主要放置一些系統(tǒng)管理的必備程序例如:cfdisk、dhcpcd、dump、e2fsck、fdisk、halt、ifconfig、ifup、 ifdown、init、insmod、lilo、lsmod、mke2fs、modprobe、quotacheck、reboot、rmmod、 runlevel、shutdown等。

/usr/sbin:
放置一些網(wǎng)路管理的必備程序例如:dhcpd、httpd、imap、in.*d、inetd、lpd、named、netconfig、nmbd、samba、sendmail、squid、swap、tcpd、tcpdump等

/: this is root directory
/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/local/bin : application user commands
/usr/local/sbin: application super user commands

/bin:是系統(tǒng)的一些指令.
/sbin:一般是指超級用戶指令.
/usr/bin:是你在后期安裝的一些軟件的運(yùn)行腳本.
綜述:
如果是用戶和管理員必備的二進(jìn)制文件,就會放在/bin;
如果是系統(tǒng)管理員必備,但是一般用戶根本不會用到的二進(jìn)制文件,就會放在 /sbin。
如果不是用戶必備的二進(jìn)制文件,多半會放在/usr/bin;
如果不是系統(tǒng)管理員必備的工具,如網(wǎng)絡(luò)管理命令,多半會放在/usr/sbin。
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。
關(guān)注官方微信