摘要: 下载 curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo chmod +x repo 为了方便可以将其拷贝到你的PATH里。 更新 repo的运行过程中会尝试访问官方的git源更新自己,如果想使用tuna的镜像源进行更新,可以 阅读全文
posted @ 2021-01-07 14:11 十七-2020 阅读(771) 评论(0) 推荐(0)
摘要: vim-plug下载 curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim 详细配置,自用备份 syntax on 阅读全文
posted @ 2021-01-06 20:53 十七-2020 阅读(95) 评论(0) 推荐(0)
摘要: 参数 --preserve或-p:除复制文件的内容外,还把修改时间和访问权限也复制到新文件中。 阅读全文
posted @ 2020-11-30 19:57 十七-2020 阅读(51) 评论(0) 推荐(0)
摘要: 参数 -maxdepth :指定遍历搜索的最大深度。最大目录层级 -mindepth: 指定开始遍历搜索的最小深度。最小目录层级 阅读全文
posted @ 2020-11-30 19:54 十七-2020 阅读(71) 评论(0) 推荐(0)
摘要: all: gcc 阅读全文
posted @ 2020-11-29 10:45 十七-2020 阅读(3) 评论(0) 推荐(0)
摘要: 推荐一个查看linux内核代码的网站,特别的好用 可以用来查看不同版本的内核代码 https://elixir.bootlin.com/linux/latest/source 阅读全文
posted @ 2020-11-27 16:48 十七-2020 阅读(586) 评论(0) 推荐(0)
摘要: #是在宏定义中将参数进行字符串化的预处理特征,例如: #include <stdio.h> #define P(EXP) printf("%s %d\n", #EXP, EXP) int main() { int a=123; P(a); return 0; } 预编译展开后的部分代码 #defin 阅读全文
posted @ 2020-11-21 18:29 十七-2020 阅读(293) 评论(0) 推荐(0)
摘要: 可以使用宏定义方式对结构体成员进行赋值。 #include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct{ struct { int n1; int n2; } data; int n3; }n_t; #define 阅读全文
posted @ 2020-11-21 18:15 十七-2020 阅读(1604) 评论(0) 推荐(0)
摘要: 函数定义 #include <sys/types.h> #include <sys/socket.h> #include <ifaddrs.h> int getifaddrs(struct ifaddrs **ifap); 参数说明 struct ifaddrs { struct ifaddrs * 阅读全文
posted @ 2020-11-21 17:55 十七-2020 阅读(1204) 评论(0) 推荐(0)
摘要: 函数定义 const char * inet_ntop(int af, const void * restrict src, char * restrict dst, socklen_t size); int inet_pton(int af, const char * restrict src, 阅读全文
posted @ 2020-11-13 07:46 十七-2020 阅读(1162) 评论(0) 推荐(0)