linux的可执行文件存放位置

  • 用户自定义的文件

  • pip管理的包
    ~/.local/lib/python3.6/site-packages #可能有一些不同

  • conda管理的包
    conda安装位置/bin
    conda安装位置/envs/bin

  • apt管理的包
    apt-get install安装目录是包的维护者确定的,不是用户
    apt-get 下载后,软件所在路径是:/var/cache/apt/archives
    系统安装软件一般在/usr/share,可执行的文件在/usr/bin,配置文件可能安装到了/etc下等。

  • /bin
    This directory contains executable programs which are needed in single user mode and to bring the sys‐ tem up or repair it.

  • /sbin
    Like /bin, this directory holds commands needed to boot the system, but which are usually not executed by normal users.

  • /usr/bin
    然后通常/usr/bin下面的都是系统预装的可执行程序,会随着系统升级而改变
    /usr/local/bin目录是给用户放置自己的可执行程序的地方,推荐放在这里,不会被系统升级而覆盖同名文件
    如果两个目录下有相同的可执行程序,谁优先执行受到PATH环境变量的影响

  • /usr/sbin
    This directory contains program binaries for system administration which are not essential for the boot process, for mounting /usr, or for system repair.

  • /usr/local/bin
    普通用户使用系统的个编译工具安装的包。因为变异过程中使用了automake变量,最终安装目录选在了/usr/localbin

  • /usr/local/sbin
    Locally installed programs for system administration.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值