-
用户自定义的文件
-
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.