2016年8月28日
摘要: Linux系统有7个运行级别: 运行级别 描述 0 系统停机状态,系统默认运行级别不能设为0,否则不能正常启动 1 但用户工作状态,root权限,用于系统维护,禁止远程登录 2 多用户状态(没有NFS) 3 多用户状态(有NFS),登录后进入控制台命令行模式 4 系统未使用,保留 5 X11控制台,登录后进入图形GUI模式 6 系统正常关闭并重启,默认运行级别不能设为6,否则不... 阅读全文
posted @ 2016-08-28 14:20 wan_ghuan 阅读(259) 评论(0) 推荐(0) 编辑
  2016年8月23日
摘要: 快捷键 功能Tab 自动补全Ctrl+a 光标移动到开始位置Ctrl+e 光标移动到最末尾Ctrl+k 删除此处至末尾的所有内容Ctrl+u 删除此处至开始的所有内容Ctrl+d 删除当前字符Ctrl+h 删除当前字符前一个字符Ctrl+w 删除此处到左边的单词Ctrl+y 粘贴由 Ctrl+u , Ctrl+d , Ctrl+w 删除的单词Ctrl+l 相当于clear,即清屏Ctrl+r 查找... 阅读全文
posted @ 2016-08-23 15:43 wan_ghuan 阅读(552) 评论(0) 推荐(0) 编辑
  2016年8月22日
摘要: #include int getch(void){ struct termios tm, tm_old; int fd = 0, ch; if (tcgetattr(fd, &tm) < 0) {//保存现在的终端设置 return -1; } tm_old = tm; cfmakeraw(&tm);//更改终端设置为原始... 阅读全文
posted @ 2016-08-22 18:30 wan_ghuan 阅读(1100) 评论(0) 推荐(0) 编辑
  2016年8月12日
摘要: 下载网址:https://sourceforge.net/projects/cppcheck/files/cppcheck/ 选择安装包:cppcheck-1.75.tar.gz 解压安装包:tar –xvf cppcheck-1.75.tar.gz 编译: make SRCDIR=build CFGDIR=/usr/share/cppcheck/ 安装:sudo make install CFG... 阅读全文
posted @ 2016-08-12 11:33 wan_ghuan 阅读(3440) 评论(0) 推荐(0) 编辑
  2016年8月10日
摘要: 网址:http://www.cnblogs.com/pswzone/archive/2012/04/09/2438885.html 阅读全文
posted @ 2016-08-10 19:53 wan_ghuan 阅读(136) 评论(0) 推荐(0) 编辑
  2016年8月6日
摘要: 网址:http://www.voidcn.com/blog/skdev/article/p-5046297.html 阅读全文
posted @ 2016-08-06 09:59 wan_ghuan 阅读(188) 评论(0) 推荐(0) 编辑
  2016年8月3日
摘要: 网址:http://blog.csdn.net/goodshot/article/details/9733721 阅读全文
posted @ 2016-08-03 12:47 wan_ghuan 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 网址:https://libcheck.github.io/check/index.html 阅读全文
posted @ 2016-08-03 11:46 wan_ghuan 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 查看内存 网址:http://blog.chinaunix.net/uid-26980210-id-3300895.html 1. 网址:http://blog.csdn.net/haoel/article/details/2879 2. 网址:http://blog.csdn.net/haoel/ 阅读全文
posted @ 2016-08-03 11:45 wan_ghuan 阅读(93) 评论(0) 推荐(0) 编辑
  2016年7月31日
摘要: -I:指定第一个寻找头文件的目录 -L:指定第一个寻找库文件的目录 -l:表示在库文件目录中寻找指定的动态库文件 例: gcc –o hello hello.c –I /home/hello/include –L /home/hello/lib –lworld /home/hello/include 作为第一个头文件的寻找目录。头文件寻找顺序:/home/hello/include –> /usr... 阅读全文
posted @ 2016-07-31 17:51 wan_ghuan 阅读(5129) 评论(0) 推荐(0) 编辑