/bin目录下放置的是在单用户维护模式下还能够被操作的命令,这些命令都可以被root和普通用户所使用,如 cat chmod
chown date mv mkdir cp 等常用命令。
/sbin 表示system
binary,该目录下放置的是一些只有超级用户(root)才能使用的系统设置命令,包括开机,修复,还原系统所需要的命令。如fdisk,
ifconfig, init, mkfs。
/usr/bin 放置的是绝大多数的普通用户可以使用的命令(与开机无关)
/bin contains commands that may be used by both the system
administrator and by users, but which are required when no other
filesystems are mounted (e.g. in single user mode). It may also
contain commands which are used indirectly by scripts.
/sbin :Utilities used for system administration (and other
root-only commands) are stored in /sbin,
/usr/sbin, and /usr/local/sbin. /sbin
contains binaries essential for booting, restoring, recovering,
and/or repairing the system in addition to the binaries in
/bin. [18]
Programs executed after /usr is known to
be mounted (when there are no problems) are generally placed into
/usr/sbin. Locally-installed system
administration programs should be placed into /usr/local/sbin.