linux基础知识集锦

来源:互联网 发布:置乱算法 编辑:程序博客网 时间:2024/06/05 17:43
 1.该文讲述了linux平台下库的类型,包括静态库,动态链接库以及动态装载库。要对这个有深入了解可以参看link and loader这本书。linux下库和可执行文件为ELF格式,windows下PE格式。动态链接linux的实现和windows有所不同。
http://www.ibm.com/developerworks/linux/library/l-dynamic-libraries/index.html?S_TACT=105AGX52&S_CMP=content
生成动态库时,gcc -shared 或者 gcc -fPIC ,使用动态库时加上 gcc -rdynamic,静态链接库则不需要。 ldd 用来读取程序依赖的 shared library, readelf 可以观察库和可执行文件的ELF内容。
关键字: PIC ELF 动态链接库,静态链接。

2.介绍了inotify API以及inotify tools。inotify以event的方式来监控用户指定的目录和文件是否有修改,增加,删除。
http://www.ibm.com/developerworks/linux/library/l-ubuntu-inotify/index.html

3.介绍了libconv字符集之间转换API。
http://blog.csdn.net/lijiecong/archive/2008/09/25/2978543.aspx

4.GDB的入门级用法,breakpoint , watchpoint,coredump。更具体的自然是参见GDB的官方manual了
http://blog.csdn.net/lijiecong/archive/2008/10/21/3115925.aspx
5.redhat的官方网站上的manual也是非常出色的
http://www.redhat.com/docs/manuals/enterprise/
6.动态库的编译和链接
http://blog.csdn.net/lijiecong/archive/2008/11/07/3244639.aspx
原创粉丝点击