简单说,/lib是内核级的,/usr/lib是系统级的,/usr/local/lib是用户级的.
/lib/ — 包含许多被 /bin/ 和 /sbin/ 中的程序使用的库文件。目录 /usr/lib/ 中含有更多用于用户程序的库文件。/lib目录下放置的是/bin和/sbin目录下程序所需的库文件。/lib目录下的文件的名称遵循下面的格式:
libc.so.*
ld*
仅仅被/usr目录下的程序所使用的共享库不必放到/lib目录下。只有/bin和/sbin下的程序所需要的库有必要放到/lib目录下。实际上,libm.so.*类型的库文件如果被是/bin和/sbin所需要的,也可以放到/usr/lib下。
/bin/ — 用来贮存用户命令。目录 /usr/bin 也被用来贮存用户命令。
/sbin/ — 许多系统命令(例如 shutdown)的贮存位置。目录 /usr/sbin 中也包括了许多系统命令。
/root/ — 根用户(超级用户)的主目录。
/mnt/ — 该目录中通常包括系统引导后被挂载的文件系统的挂载点。譬如,默认的光盘挂载点是 /mnt/cdrom/.
/boot/ — 包括内核和其它系统启动期间使用的文件。
/lost+found/ — 被 fsck 用来放置零散文件(没有名称的文件)。
/lib/ — 包含许多被 /bin/ 和 /sbin/ 中的程序使用的库文件。目录 /usr/lib/ 中含有更多用于用户程序的库文件。
/dev/ — 贮存设备文件。
/etc/ — 包含许多配置文件和目录。
/var/ — 用于贮存variable(或不断改变的)文件,例如日志文件和打印机假脱机文件。
/usr/ — 包括与系统用户直接有关的文件和目录,例如应用程序及支持它们的库文件。
/proc/ — 一个虚拟的文件系统(不是实际贮存在磁盘上的),它包括被某些程序使用的系统信息。
/initrd/ — 用来在计算机启动时挂载 initrd.img 映像文件的目录以及载入所需设备模块的目录。
|
警告
|
不要删除 /initrd/ 目录。如果你删除了该目录后再重新引导 Red Hat Linux 时,你将无法引导你的计算机。
|
/tmp/ — 用户和程序的临时目录。 /tmp 给予所有系统用户读写权。
/home/ — 用户主目录的默认位置。
/opt/ — 可选文件和程序的贮存目录。该目录主要被第三方开发者用来简易地安装和卸装他们的软件包。
分享到:
相关推荐
runtime library [libssl.so.1.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in: /home/rw/anaconda3/lib 首先查看路径,可以看到返回结果中,第一个查找路径是anaconda的。 export $PATH bash: export...
-bash: /usr/local/jdk/jdk1.8.0_181/bin/java: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory 安装完后 java -version 查看版本出现: 原因是:没有那个文件或目录,找了很久发现需要...
NULL 博文链接:https://loveboth.iteye.com/blog/1543287
上网找了很多教程,原理对 有的介绍用: /lib/ld-2.17.so .../lib/ /lib64 /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 发现shell命令依赖库在/usr/lib64 然后继续找,尝试以下命令 /usr/lib64_
解决linux下出现/lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found问题,包含libstdc++.so.6.0.23文件和使用说明文档
ucsc软件问题!!!在Linux系统中,如果安装ucsc的系列软件,如: conda install -c bioconda ucsc-bedgraphtobigwig conda install -c ...ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
把libstdc++.so.6.0.13这个资源放到/usr/lib文件夹下。删除/usr/lib/libstdc++.so.6。 在输入命令ln -s /usr/lib/libstdc++.so.6.0.13 /usr/lib/libstdc++.so.6。问题解决 可以输入strings /usr/lib/libstdc++.so.6 ...
centos7 64位 import tensorflow 报错 ‘GLIBC_2.23' not found
chown -R mysql:mysql /usr/local/mysql/lib/ chown -R mysql:mysql /usr/local/mysql/sock/ 启动:mysql服务 /usr/local/mysql/share/mysql/mysql.server start 进入mysql /usr/local/mysql/bin/mysql 如有问题qq...
cp /usr/local/python3.7.5/lib/libpython3.7m.so.1.0 /usr/lib64 3、复制软链接 ln -s /usr/local/python3.7.5/bin/python3 /usr/bin/python3.7 ln -s /usr/local/python3.7.5/bin/pip3 /usr/bin/pip3.7 ln -s /usr...
ss/usr/bin/ld: warning: libopencv_core3.so.3.3, needed by /usr/local/lib/lib 搜寻了好久大致有以下几种解决方案: 1.把该文件所在的目录放到linux动态库链接文件中: sudo gedit /etc/ld.so.conf 输入路径...
2、安装Luajit2.0.2 make make install 3、安装nginx export LUAJIT_LIB=/usr/local/lib export LUAJIT_INC=/usr/local/include/luajit-2.0 ./configure --prefix=/usr/local/...ln -s /usr/local/lib/liblua* /lib
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found 操作方法:#rm /usr/lib/x86_64-linux-gnu# rm libstdc++.so.6 #ln libstdc++.so.6.0.20 libstdc++.so.6 #strings /usr/lib/x86_64...
/use/lib//usr/lib/libdb-4.2.so: could not read symbols: File in wrong format Notice: Following unknown configure options were used: usr/bin/ld: cannot find -lltdl /usr/bin/ld: cannot find -...
zabbix微信报警脚本...路径/usr/lib/zabbix/alertscripts/wechat.py 提示:请执行 chown zabbix.zabbix /usr/lib/zabbix/alertscripts/wechat.py chmod +x /usr/lib/zabbix/alertscripts/wechat.py 一定要赋予权限
./bin/mysqld: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./bin/mysqld) ./bin/mysqld: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./bin/mysqld) libstdc...
o ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so o ln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so o ln -s /usr/lib64/libfdfsclient.so /usr/local/lib/libfdfsclient.so ...
解决usrlib64libstdc++.so.6和lib64libc.so.6版本过低问题
运行pyton 代码 提示libstdc++.so.6 GLIBCXX 错误 ... ln -s /usr/lib64/libstdc++.so.6.0.21 /usr/lib64/libstdc++.so.6 7 strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX 通过这个方法查找出对应的版本型号
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mpc/lib:/usr/local/gmp/lib:/usr/local/mpfr/lib cd ../gcc-4.4.3/ ./configure --prefix=/usr/local/gcc --enable-threads=posix --disable-checking --...