加载中
统计代码行数

不包括空行 find . "(" -name ".c" -or -name ".h" ")" -print | xargs grep -v "^$" | wc -l 包括空行 find . "(" -name ".c" -or -name ".h" ")" -print | xargs wc -l......

2020/09/08 15:59
99
core文件生成与设置

命令设置 echo "/mnt/sd_card/%e.%p.%s.%t.core" > /proc/sys/kernel/core_pattern ulimit -c unlimited 代码设置 void coredump_file_set(void) { #define CORE_FILE_SIZE 10241024450 stru...

安装pstree 命令查看进程树关系

centos yum install -y psmisc

2020/06/03 14:09
519
sockaddr_in && sockaddr

sockaddr_in && sockaddr 的原型与需要包含的头文件 #include typedef uint32_t in_addr_t; struct in_addr{ in_addr_t s_addr; }; typedef uint16_t in_port_t; /* Structure describing a....

2020/05/15 11:30
204
获取线程的tid

获取线程的tid #include char msg[32] = {0}; sprintf(msg,"tid:%d",syscall(SYS_gettid));

error while loading shared libraries: libevent cannot open shared object file

错误提示 error while loading shared libraries: libevent cannot open shared object file 程序执行时,默认去/lib/或者/usr/lib下连接动态库 此时可以把要链接的动态库复制到这两个目录下...

linux系统修改文件夹属于某个普通用户

su root chown -R 用户 openwrt_hdl_source chgrp -R 用户 openwrt_hdl_source

linux系统配置域名解析地址上网

echo "nameserver ip地址" > /etc/resolv.conf

linux系统添加普通新用户

添加一个zze的普通用户并设置密码 adduser zze passwd zze 2.root 用户模式下 vim /etc/sudoers

2020/04/15 11:18
103
has modification time 18982 s in the future

1.has modification time 18982 s in the future * windows用winscp同步文件到linux,编译时出现以上错误,解决办法 find (文件所在目录) -type f | xargs -n 5 touch......

linux搭建ftp服务器上传与下载文件

1.服务端安装 ip 172.16.8.189 yum -y install vsftpd 2.服务端用户名配置和设置密码,ftp客户端登录下载或者上传文件,需要输入的用户名或者密码 用户名为zze 密码zze 3.修改配置文件 在/et...

sqlite3_api undeclared (first use in this function)

编译sqlite3源码使用,编译不过,并提示以下 原因:不能包含以下头文件sqlite3ext.h 使用sqlite3,只有以下两个文件是有用的

2019/10/12 20:33
843

没有更多内容

加载失败,请刷新页面

返回顶部
顶部