linux执行usrbin下的文件,/bin和/usr/bin及/sbin目录所放置的执行文件有什么不同

/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.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值