2019年7月18日

摘要: 将markdown转换成html查看。 要将markdown文件转换成html文件,可以用discount或python-markdown软件包提供的markdown 或: 转换工作很简单: 如果要生成PDF,也很简单,可以用python-pisa提供的xhtml2pdf: 所以,你可以在文档目录下 阅读全文
posted @ 2019-07-18 22:58 rivsidn 阅读(2300) 评论(0) 推荐(0) 编辑

2019年7月15日

摘要: The default $PS1 in Ubuntu consists of three parts: \[\e]0;\u@\h: \w\a\] This is an escape sequence which will set the terminal title text to $USER@$H 阅读全文
posted @ 2019-07-15 22:30 rivsidn 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 实例如下: 参考资料 https://blog.csdn.net/david_dai_1108/article/details/70478826 阅读全文
posted @ 2019-07-15 22:18 rivsidn 阅读(187) 评论(0) 推荐(0) 编辑
摘要: shell 基础 shell 基础 shell 变量 shell 字符串 shell 数组 shell 参数传递 shell 运算符 shell 文件测试 shell 流程控制 shell 重定向中的 & 符号 shell 函数 shell 文件包含 shell 符号 shell 内建命令 shel 阅读全文
posted @ 2019-07-15 22:18 rivsidn 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 编译 GCC编译的几个步骤 【消除unused错误】https://blog.csdn.net/cfqcfqcfqcfqcfq/article/details/54382282 gcc产生类型转换告警 枚举之后define 变量(指针) 二级指针(二) 操作符 语句 函数 printf 函数 关键字 阅读全文
posted @ 2019-07-15 22:12 rivsidn 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 打印带颜色的输出 控制字符的通用格式如下: Esc[{attr1};...;{attrn}m 其中: Esc 是转义字符, 其值为"\033"; [ 是常量的左中括号; {attr1};...{attrn} 是若干属性, 通常是由一个有特定意义的数字代替, 每个属性之间用分号分隔; m 就是字面常量 阅读全文
posted @ 2019-07-15 22:11 rivsidn 阅读(298) 评论(0) 推荐(0) 编辑

2019年7月13日

摘要: 概述 模拟异常,定位行号。 通过代码制造异常 oops.c makefile 加粗、下划线部分编译时候开始 -g 选项。 产生异常 sudo insmod oops.ko 定位异常到具体行号 参考资料 https://opensourceforu.com/2011/01/understanding- 阅读全文
posted @ 2019-07-13 16:08 rivsidn 阅读(1140) 评论(0) 推荐(0) 编辑

2019年6月19日

摘要: 网卡驱动 网卡命令 二层协议 IPV4 IPV6 网络安全 TODO 整理该目录 netdevice是如何命名的? 阅读全文
posted @ 2019-06-19 17:41 rivsidn 阅读(122) 评论(0) 推荐(0) 编辑

2019年6月17日

摘要: V0.1 参见《Bash Reference Manual》 3.5.4 Command Substitution,想要引用 cmd 的输出有两种方式,$(command) 或者 `comand`。 V1.1 TODO 更新到相应版本号 删除不在版本库中的文件 阅读全文
posted @ 2019-06-17 11:08 rivsidn 阅读(248) 评论(0) 推荐(0) 编辑

2019年6月16日

摘要: 包含外部脚本(包含的脚本可以不需要可执行权限) 示例: 阅读全文
posted @ 2019-06-16 21:10 rivsidn 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 函数定义 函数调用 函数参数、返回值 参数跟shell 参数传递中保持一致 返回值范围为0-255 阅读全文
posted @ 2019-06-16 21:02 rivsidn 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 分支语句 if else-if else case 循环语句 for 循环 shell for 循环 while 循环 until 循环 跳出循环 break continue 总结 case 语句中的 ;; 是不能省略的,不会出现C代码中的,不加break,跳到下一个case中继续执行的写法 br 阅读全文
posted @ 2019-06-16 17:48 rivsidn 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 语法一 语法二 阅读全文
posted @ 2019-06-16 17:47 rivsidn 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 概述 注意: 文件大小一直不为空 阅读全文
posted @ 2019-06-16 12:28 rivsidn 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 字符串运算符 字符串关系运算符 需要注意的一点是 执行 也就是说,只有当 字符串不为空的时候,判断字符串长度才有意义。 算数运算符 假定 a 为 20, b 为 10 `expr $a + $b` 或 $(($a+$b)) 或 $[$a+$b] `expr $a - $b` 或 $(($a-$b)) 阅读全文
posted @ 2019-06-16 11:56 rivsidn 阅读(158) 评论(0) 推荐(0) 编辑

导航