Chapter 1: getting start
任何一本书都不可能适合任何人,这本书适合没有任何linux经验的C程序员


这章主要是介绍了unix linux gun的发展历史,
Unix is a trademark by The Open Group and source code belongs to SCO.
Unix phliosophy: The why we choose Unix.有点老掉牙的话题
这本书讲的却非常精辟:
1 what is Simplicity,
Small&simple in utilites
2 Focus,
It means,from the requirement ,we first break down the user needs.Then we try very small utilites which combined to perform. a single purpose so that easy to perform. and improve later for the better algorithms and interface.
3 Reusable,
To realize the reusable,you should have the ability to find out the core of your applications. then make it a lib.
And you should well documented with simple but flexible programming interface to helps others programmer.
4 Filters,
Filter is just transform. input and output ,to helps combining the programs.
5 Openfileformat
6 Flexibility:
is for the ingeniously users , never assume that user might want to do.
avoid arbitrary limits on field size,numbers limitation


Remember the famous name:AT&T,Linus Torvalds,Helsinki,Richard Stallman on GNU,Dennis Ritchie,


Programming Linux
1 Linux programs: two special typs: executables and scripts:
these two type can replace each other vice versa.


What the tips I learn form. this charpter:
1  / forward slash ,remember the UNIX got the first, the DOS not.
2  C compiler C89
3  emacs is a important editor in linux
4  ./  what that means
5  the RoadMap actually -- where the tools and development resources are located.
ok,这是个入门的重点:那就是知道linux是如何组织和应用各个应用和工具的: 默认路径,这个往往是初学者不知道的东西:
general applications: /usr/bin
administrator specific: /usr/local/bin  or /opt
usr/local will not remove while you reinstall the OS

You need to know the applications / include header files/ and the library files.


Some very useful flags for:
-I (uppercase letter for "i")  used for libs include path
-l (lowercase letter for "L")  find a lib's full path and name standard lib path. eg. -lm include a math libs in standard path
-L  add search directory , if not specify then it means just in current directory.


how to generate a lib and use
1 use -C while we compile the program:
2 use ar to creat a archive


then chapter said how a shared libraries are works


Getting helps show us the basic help method:
1 man
2 info
3 help  eg: used in bash shell:
help set

【读书笔记0102】Beginning linux programming-3rd相关推荐

  1. beginning linux programming pdf,Beginning Linux Programming, Second Edition

    摘要: If you've already got Linux up and running on your machine and you really want to exploit its ca ...

  2. 《Beginning Linux Programming》读书笔记(四)

    1, 读写空指针 先看第一种情况,printf试图访问空指针,以打印出字符串,而sprintf试图向空指针写入字符串,这时,linux会在GNU C函数库的帮助下,允许读空指针,但不允许写空指针. 复 ...

  3. 《Beginning Linux Programming》读书笔记(二)

    第2章Shell编程没什么多说的,记录个代码,本章最后的那个简单的CD管理程序 复制代码 #!/bin/sh # Very simple example shell script for managi ...

  4. 读书笔记之:Linux程序设计(第4版)(ch1-7) [ 学如逆水行舟,不进则退 ]

    <Linux 程序设计>是一本非常好的书,内容很全面,并且对于给出的例子都进行了详细的讲解.并且是通过一个的小型的项目的来讲解的:开始是使用shell进行编程实现,然后逐步进行改进,使用C ...

  5. [Linux] 读书笔记之:Linux程序设计(第4版)(ch1-7) [ 学如逆水行舟,不进则退 ]...

    <Linux 程序设计>是一本非常好的书,内容很全面,并且对于给出的例子都进行了详细的讲解.并且是通过一个的小型的项目的来讲解的:开始是使用shell进行编程实现,然后逐步进行改进,使用C ...

  6. 读书笔记:《Linux内核源代码情景分析》

    第1章 预备知识 1.1 Linux内核简介 Unix.Minix.Linux Micro-Kernel.Macro-Kernel 1.2 Inter X86 CPU系列的寻址方式

  7. 读书笔记之:Linux程序设计(第4版)(ch1-7) [ 学如逆水行舟,不进则退

    <Linux 程序设计>是一本非常好的书,内容很全面,并且对于给出的例子都进行了详细的讲解.并且是通过一个的小型的项目的来讲解的:开始是使用shell进行编程实现,然后逐步进行改进,使用C ...

  8. Beginning Linux Programming chapter 11

    开始一个新进程      你可以启动一个程序从另一个程序的内部,所以创建一个进程可以使用system库函数.      #include <stdlib.h>      int syste ...

  9. Linux设备驱动程序 第三版 读书笔记(一)

    Linux设备驱动程序 第三版 读书笔记(一) Bob Zhang 2017.08.25 编写基本的Hello World模块 #include <linux/init.h> #inclu ...

最新文章

  1. 【AWSL】之Linux文件系统与日志分析(inode、恢复EXT类型的文件、恢复XFS类型的文件)
  2. 【eclipse转idea的第一天】配置idea
  3. Linux Kernel Lock types and their rules
  4. linux系统克隆安装教程,使用Clonezilla克隆Linux安装的方法
  5. https://akaedu.github.io/book/ch32s02.html
  6. 太原理工大学ACM队简介(2018版)
  7. Google 开源 VHP 震动触觉平台,降低触觉设备开发难度
  8. Nmap命令:-sP和-sN的区别
  9. visio旋转图形_visio2013怎么旋转图形? visio调整图形角度的教程
  10. 【有利可图网】PS实战教程28:巧用调整边缘滤镜抠毛发
  11. php laravel 分页,laravel 分页问题
  12. AD/Allegro:0603、0805、1206尺寸封装设计资料
  13. Hermite多项式正交性证明
  14. 苹果在线商店开售官方翻新Retina MacBook Pro
  15. 什么是视觉特效师,我如何才能成为一名艺术家?
  16. 图解NodeJS【基于事件、回调的单线程高性能服务器】原理
  17. VS Code错误 “preloads: Could not find renderer” 解决办法
  18. 即时编译器的中间表达形式(IR)
  19. 尘埃落定!AI 大牛贾佳亚离开腾讯优图,创立思谋科技,投身差异化 AI 创业
  20. 华为认证三个等级区别在哪?

热门文章

  1. Android udp json+数组 ---gt;bytes发送数据
  2. java 课后习题 输出正整数的顺序相反数
  3. 【Python】猜数小游戏
  4. 为什么程序员跟其他人比起来应该喝更多的水
  5. flexbox算法实现_如何使用Flexbox实现水平滚动
  6. java 一些容易忽视的小点-控制语句
  7. win10启动项_win10你的电脑遇到问题需要重新启动
  8. LeetCode-234. 回文链表(C语言)
  9. stateflow被激活问题探究
  10. kali的burpsuite笔记