Linux/bin,/sbin,/usr/bin,/usr/sbin区別
linuxでよく使用される4つのアプリケーションのディレクトリは、/bin、/sbin、/usr/bin、/usr/sbinです。
bin:binはbinaryの簡略化のために、cat、cp、chmod df、dmesg、gzip、kill、ls、mkdir、more、mount、rm、su、tarなど、主にいくつかのシステムの必須実行ファイルを配置する。
主に、c++、g++、gcc、chdrv、diff、dig、du、eject、elm、free、gnome*、zip、htpasswd、kfm、ktop、last、less、locale、m 4、make、man、mcopy、ncftp、newaliases、nslookup passwd、quota、smb*、wgetなどのアプリケーションソフトウェアツールの必須実行ファイルを配置します。
主に、cfdisk、dhcpcd、dump、e 2 fsck、fdisk、halt、ifconfig、ifup、ifdown、init、insmod、lilo、lsmod、mke 2 fs、modprobe、quotacheck、reboot、rmmod、runlevel、shutdownなど、システム管理の必須プログラムを配置します。
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:システムの命令です。
/sbin:一般的にスーパーユーザ命令を指す.
/usr/bin:後期にインストールしたソフトウェアの実行スクリプトです。
概要:ユーザーと管理者に必要なバイナリファイルであれば、/binに配置されます。
システム管理者に必須ですが、一般ユーザーがまったく使用しないバイナリファイルは/sbinに配置されます。
ユーザーが必要とするバイナリファイルでなければ、大半は/usr/binに置かれます。
ネットワーク管理コマンドなど、システム管理者に必要なツールでない場合は、ほとんど/usr/sbinに配置されます。