随笔分类 -  linux

linux交叉编译libiconv
摘要:1.解压libiconv-1.14.tar 2.进入解压后目录libiconv-1.14 3.执行交叉编译环境命令,例如: source /home/huhe/environment-setup-aarch64-poky-linux 4.执行配置 ./configure --prefix=/home 阅读全文

posted @ 2022-09-20 09:33 Ants_hu 阅读(424) 评论(0) 推荐(0) 编辑

c语言创建线程的函数封装
摘要:头文件xxx.h #include <stdlib.h> #include <pthread.h> #include <string.h> typedef int (*task_fun_t)(void *arg); typedef struct _task_t { unsigned int ms; 阅读全文

posted @ 2022-08-12 10:27 Ants_hu 阅读(104) 评论(0) 推荐(0) 编辑

grep的正则匹配使用方式
摘要:grep正则匹配的命令方式如下 $ grep 'pattern1\|pattern2' filename 或 $ grep -E 'pattern1|pattern2' file grep默认是区分大小写的,所以如果需要忽略大小写匹配的话,可以添加-i,如下 $ grep -i 'pattern1| 阅读全文

posted @ 2022-05-25 14:50 Ants_hu 阅读(1857) 评论(0) 推荐(0) 编辑

欢迎阅读『linux』
点击右上角即可分享
微信分享提示