- 博客(26)
- 收藏
- 关注
原创 使用ascii的转移序列为make输出设置颜色
最近法make info的命令比较好用,例如:info: @echo $(SRCS) @echo $(OBJS) @echo $(DEPS)但是发现输出的内容太多,就有了为输出上些色的想法在网上搜索相关内容,发现这一篇比较靠谱,简单说,流程如下在待转换的前面添加序列(例如红色)\e[31m在后面清除设置\e[0m在bash中命令如下:echo "\e[31m test \e0m"但在makefile中这一句没有用,查阅文档,找到了相关问题,原因应该是\e表示转义序列的开始,而该
2021-04-05 15:31:22
299
1
原创 ch5 文件系统
5 文件系统使用 mount/unmount 挂载磁盘修改 /etc/fstab 实现自动挂载使用 fuser 查找使用某个文件的进程理解标准目录的用途 P127使用 ls -ld 列出当前目录下的详细信息理解Unix下的fileCode ‘-dcbspl’使用危险模式匹配删除时,使用’-i’选项进行确认使用 ‘ls -b’ 显示文件名中的不可打印字符了解文件类型Regular, Directory, Hrad Link, device file,
2020-12-14 14:20:50
166
1
原创 流畅的python First-Class Functions
First-Class FunctionsFirst class like Integers, strings, and dictionariesHigher-Order Functions: A function that takes a function asargument or returns a function as the resultmost common: map, filter, reduce, applypython equvalent: list compr
2020-12-08 09:31:40
207
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人