家用笔记本电脑清灰:

快捷键:

shell 编程范例

2019-2-3:下午

  1. 执行:
    1. bash file.sh
    2. source file.sh
    3. ./path/file.sh
  2. 添加执行权限:chmod +x file.sh
  3. bash 的调试:
  4. bash数值运算:(python更直观)
  5. time file.sh :查看file.sh的运行时间
  6. bool运算:if false;then echo "YES"; else echo "NO"; fi
  7. && \ || \ !
  8. 字符串: iconv cut tr sed awk join read cat
  9. 文件操作:
  10. 文件系统操作:
  11. 进程操作:
  12. 作业控制:
  13. 网络:
  14. 用户管理:

linux 编程白皮书

linux 内核

  1. cpu,存储器,总线(地址\数据\控制),控制器,外设,地址空间,时钟
  2. 内核数据结构:链表\散列表\抽象接口
  3. 进程间通信:信号(kill -L),管道(pipe),socket,消息队列,信号量,共享存储区

linux 内核模块

linux程序员指南


正则表达式(python)

2019-2-6

  1. 元字符是"[" 和 "]"。它们常用来指定一个字符类别,所谓字符类别就是你想匹配的一个字符集:[a-z]
  2. 大多数字母和字符一般都会和自身匹配
  3. 元字符:. ^ $ * + ? { [ ] \ | ( )
  4. 可以用补集来匹配不在区间范围内的字符。其做法是把"^"作为类别的首个字符
  5. 如果你需要匹配字符 "[" 或 "\",你可以在它们之前用反斜杠来取消它们的特殊意义: [ 或 \。
  6. 预定义字符集:
  7. "." : 它匹配除了换行字符外的任何字符
  8. 第一个重复功能的元字符是 * : 它指定前一个字符可以被匹配零次或更多次,而不是只有一次
  9. +,表示匹配一或更多次
  10. 问号 ? 匹配一次或零次
  11. 最复杂的重复限定符是 {m,n}(注意m,n之间不能有空格),其中 m 和 n 是十进制整数。该限定符的意思是至少有 m 个重复,至多到 n 个重复
  12. 为正则表达式使用 Python 的 raw 字符串表示;在字符串前加个 "r" 反斜杠就不会被任何特殊方式处理,所以 r"\n" 就是包含"\" 和 "n" 的两个字符
import re
pattern=re.complie(r'a{1,3}b*')

《linux 操作系统技术合集》

初,中级学习者教程2007

  1. linux提速:
  2. linux 特殊文件:
  3. rar-for-linux:rar格式文件打开方式
  4. 编程三方面:开发环境、语言语法、标准库
  5. linux命令:tar、unzip,gnuzip,uuencode{二进制-》文本}
  6. 文件和目录操作:
  7. 病毒的制造者是一些精通编写代码的黑客
  8. 病毒只不过是一个能不经过你的同意而感染和摧毁其他程序的程序。
  9. 蠕虫是一个不经过你的同意而自我复制的代码块
  10. {很多东西已经过时,讲的很泛泛}

《ubuntu参考手册》

内容全面,实用(存在/pdf中)

Debian Developer’s Reference

September 25, 2018

  1. 关于软件包开发,维护所需要的资源和注意事项(共83页)
  2. https://www.debian.org/Bugs/
  3. Best practices:
  4. https://www.debian.org/Bugs/Reporting
  5. https://translationproject.org/html/welcome.html
  6. https://wiki.gnome.org/TranslationProject
  7. 工具:
  8. Core tools;

linux sea

Sven Vermeulen

  1. 网络管理;iwlist iwconfig ifconfig iw
  2. /etc/conf.d/keymaps :键盘映射
  3. 面向gentoo
  4. 备份:First of all, take a copy of your /etc folder. The /etc directory contains all system settings
  5. /var/lib/portage/world is your world-file, which contains a list of all software you’ve installed
  6. /proc/config.gz (or /usr/src/linux/.config ) is your kernel configuration
  7. 系统备份工具:PartImage

The GNU C LibraryReference Manual

  1. errno.h:错误报告
  2. 内存申请:malloc.h,内存检查mcheck.h
  3. ctype.h:字符操作:判断字符类型
  4. 串和数组操作:string.h
  5. 国际化:locale.h、langinfo.h.
  6. message translation:nl_types.h
  7. 搜索,排序:search.h stdlib.h
  8. 模式匹配:fnmatch.h glob.h regex.h wordexp.h
  9. io:stdio:getline()printf.h sys/uio.h sys/mman.h
  10. 格式化message:fmtmsg.h
  11. fcntl.h、unistd.h sys/ioctl.h
  12. File System Interface:unistd.h dirent.h sys/param.h sys/stat.h
  13. utime.h sys/time.h sys/timex.h time,h
  14. pipe function is declared in the header file unistd.h
  15. sys/socket.h sys/un.h netinet/in.h netdb.h
  16. Syslog:/etc/syslog.conf syslog.h
  17. math.h complex.h rand{stdlib.h} stdint.h
  18. 系统资源使用:sys/resource.h sys/vtimes.h sys/vlimit.h
  19. setjmp.h ucontext.h
  20. The signal names are defined in the header file signal.h.
  21. The system starts a C program by calling the function main
  22. system 在stdlib。fork in unistd.h
  23. user and group:sys/types.h and unistd.h pwd.h
  24. sys/utsname.h fstab.h{internal representation for entries of the file}
  25. sys/mount.h sys/sysctl.h limits.h{系统限制}
  26. 加密:crypt.h
  27. debug:execinfo.h{backtrace}
  28. thread:threads.h
  29. The assert macro, defined in the header file assert.h
返回首页