- 博客(20)
- 资源 (21)
- 收藏
- 关注
原创 setpci 命令的使用
Usage: setpci [<options>] (<device>+ <reg>[=<values>]*)*Setting commands:<device>: -s [[[<domain>]:][<bus>]:][<slot>][.[<func>]]-d [<...
2019-05-09 00:19:44
9063
原创 git-svn 中的一些常用操作
Tracking and contributing to the trunk of a Subversion-managed project (ignoring tags and branches): # Clone a repo (like git clone): git svn clone http://svn.example.com/projec...
2019-05-09 00:17:13
291
原创 解决 secureCRT 自动启用打印命令的情况
查找是那一条打印命令引起的打印指令,排查出如下语句DebugPrint((KERN_ERR"\033[0;31interrupt Handle Out!\n\033[0m"));这里在 \033[0;31 后应该是 m,写掉了。故命令就变成了\033[0;31i,而这个恰好是终端打印命令。ANSI 控制码是控制终端光标位置、屏幕布局、字体、字符颜色等最主要的指令,其内容的查找可通...
2019-05-09 00:13:18
4251
1
原创 安装 linux 内核 manpage 手册
下载需要参考的内核版本的源码;确保本机环境安装apt-get install manpages-devapt-get install xmlto进入内核源码,执行make mandocs生成 manpage 文件,生成文件在目录 Documentation/DocBook/man/ 下;执行安装命令sudo make installmandocs;然后使用 ma...
2019-05-09 00:07:52
2647
1
原创 git 的一些应用和配置
项目初始化git initgit 用户配置git config --global user.name "water-moon"git config --global user.email "xxxxx@gmail.com"git 一些常用别名设置git config --global alias.ci commitgit config --global alias...
2019-05-09 00:06:14
101
原创 debian 设置使用文本界面启动
systemctl set-default multi-user.target重启即可。(不使用图形界面,linux 消耗的内存就要小很多)
2019-05-09 00:01:26
3469
原创 linux 内核版本查看
uname -a root@:~# uname -a Linux 4.1.8-rt8 #18 SMP Fri Apr 27 16:29:13 CST 2018 ppc64 GNU/Linux
2019-05-08 23:59:30
223
原创 虚拟机中设置双网卡
进入“虚拟机设置”在硬件下选择添加,添加一个“网络适配器”一个网络适配器使用桥接模式,用于内网连接;一个网络适配器使用 NAT 模式,共用主机地址,用于外网连接。...
2019-05-08 23:57:51
1638
原创 debian tftp 配置
tftp 的配置文件属于 /etc/xinetd.conf,由于 /etc/xinetd.conf 会调用 /etc/xinetd.d 中的所有配置文件,所以我的配置文件在 /etc/xinetd.d 中表示为 tftpd;tftpd 的配置信息如下:service tftp{ protocol = udp socket_type ...
2019-05-08 23:56:57
2678
原创 nfs 的 mount 命令
mount -t nfs -o rw 192.168.88.10:/home/water-moon/nfsroot /mnt/nfs/如果出错,则使用下面的命令(使用 nolock 选项)busybox mount -t nfs -o nolock 192.168.88.10:/home/water-moon/nfsroot /mnt/nfs/...
2019-05-08 23:53:38
1361
原创 depmod 命令
depmod 命令用于生成 modules.dep 和 map 文件,该文件用于在启动时 modules 自动加载。该命令生成的文件是 modules 之间依赖的一个列表。
2019-05-08 23:50:48
2844
原创 Vim 编辑视图下自动补全
Completion can be done for: Whole lines i_CTRL-X_CTRL-L keywords in the current file i_CTRL-X_CTRL-N keywords in 'dictionary' i_CTRL-X_CTRL-K keywords in 'thesaurus', thesaurus-styl...
2019-05-08 23:48:43
425
原创 windows 不能建立 aux 这样文件名的文件
windows 下不能建立 “aux” 这样名字的文件,后缀名不限,原因是 aux 是 windows 的音频设备,在任何地方都不能命名这样的文件/文件夹名称。
2019-05-08 23:43:59
4826
原创 位域-在内存中存储的分析
1. 用于分析的代码#include <stdio.h>#include <errno.h>#include <string.h>#include <stddef.h>#pragma pack(8) /* 指定 8 字节对齐 *//* 测试机器字长: 64bit * 大端测试: T2080 * 小端测试: Intel i3 * ...
2018-11-30 22:37:13
720
原创 标准输出缓存在多进程代码中引起的一个问题
这里先看两个例子:1) 源码如下:#include <sys/types.h>#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <errno.h>int main(int argc, char *argv[]){ pid_t ...
2018-11-30 01:16:17
2442
原创 深入理解 getopt_long,getopt_long_only
getopt_long, getopt_long_only – 命令行解析函数,支持长选项解析【说明】 getopt_long/getopt_long_only 是 getopt 的泛集,getopt 是 getopt_long 的一个子集,getopt 支持的所有特性,getopt_long 都支持,包括错误打印、argv 元素顺序调整等;getopt_long 相比 getopt 增加了长选...
2018-11-30 01:04:10
1720
原创 深入理解getopt
getopt – 解析命令的可选项【说明】 getopt 只是一个简单的解析命令可选项的函数,只能进行简单的格式命令解析,格式如下:1、形如:cmd [-a][-b] //对短选项的解析;2、形如:cmd [-a a_argument][-b b_argument] //对短选项及短选项的参数解析;3、形如:cmd [-a[a_argument]] //选项a的参数也是可选的情况解析4...
2018-11-30 00:55:48
310
Excel VB操作手册
2012-05-08
工作日志记录软件
2011-11-16
四层PLC电梯控制+组态软件仿真
2009-10-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人