子嘉的博客 子嘉的博客
首页
bic-bic
技术
关于
收藏
  • 分类
  • 标签
  • 归档
GitHub (opens new window)

高子嘉

没有比脚更长的路,没有比人更高的山
首页
bic-bic
技术
关于
收藏
  • 分类
  • 标签
  • 归档
GitHub (opens new window)
  • 技术文档

  • GitHub技巧

  • 博客搭建

  • 服务端

  • distributed

  • golang

  • db

  • docker

  • linux

    • directory
    • directory
    • user
    • shell

  • 技术
  • linux
子嘉
2022-06-05

directory

/etc 配置文件
/boot 引导分区
/var 日志
/home/mk 普通用户主目录
/root root 用户主目录
/tmp 临时文件
/usr unix software source 系统软件
/opt 大型第三方软件, option

# 以下几个目录和系统相关
/bin 普通系统命令
/sbin 很重要的系统命令
/usr/bin 普通系统命令
/usr/sbin 很重要的系统命令
/usr/local/bin 自己源码安装的命令
/usr/local/sbin 自己源码安装的很重要的命令

/lib 程序,系统的库文件(函数库)
/dev 设备文件
/media 可移动介质上的文件系统挂载点

/usr/include #C 程序文件的头文件
/usr/lib 库文件
/lib 库文件
/lib64 64 位库文件
/usr/share 系统手册帮助文档等
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

/etc/ld.so.conf 文件记录了编译时和运行时使用的动态库路径,也就是加载 so 库的目录,默认情况下,编译器只会使用 /lib 和 /usr/lib 这两个目录下的库文件。

例如要使用目录 /usr/local/service/lib 下的.so 文件,可使用下面命令,权限不够时使用 sudo 执行

echo "/usr/local/services/lib/" >> /etc/ld.so.conf && ldconfig
1

ldconfig 位于/usr/sbin/ldconfig,它的作用是将文件/etc/ld.so.conf 列出的路径下的库文件缓存到/etc/ld.so.cache 以供使用,因此当安装完一些库文件,或者修改/etc/ld.so.conf 增加了库的新搜索路径时,需要运行一下 ldconfig,使所有的库文件都被缓存到文件/etc/ld.so.cache 中。

编辑 (opens new window)
上次更新: 2024/03/02, 18:30:15
consul
directory

← consul directory→

最近更新
01
mongodb restore
03-06
02
pytesseract
02-28
03
consul
02-24
更多文章>
Theme by Vdoing | Copyright © 2022-2025 子嘉 | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式