随笔分类 -  Linux日常

linux日常使用遇到的问题、想法等记录。
摘要:# 简介 本文档是根据CMake的官方教程学习的笔记,同时将教程中C++实现的代码更改为C语言实现。当前还未学习完。 教程官网:[CMake Tutorial — CMake 3.27.0-rc1 Documentation](https://cmake.org/cmake/help/latest/ 阅读全文
posted @ 2023-06-18 20:07 zhengcixi 阅读(401) 评论(0) 推荐(0) 编辑
摘要:## 参考 [gprof的简单使用-anthony1983-ChinaUnix博客](http://blog.chinaunix.net/uid-12656193-id-320091.html) [Top (GNU gprof) (sourceware.org)](https://sourcewar 阅读全文
posted @ 2023-06-02 21:16 zhengcixi 阅读(81) 评论(0) 推荐(0) 编辑
摘要:1 查看SO 查看so库的方法__臣本布衣_新浪博客 (sina.com.cn) 1、nm -D libxxx.so 打印出符号信息。 一般这样用:nm -D libxxx.so |grep T $ nm -D /lib/libstdc++.so | grep T 0000000000000618 阅读全文
posted @ 2022-05-13 19:32 zhengcixi 阅读(1003) 评论(0) 推荐(0) 编辑
摘要:参考博客:将虚拟机IP与主机IP设置在同一网段的方法 - 天懿 - 博客园 (cnblogs.com) 主机地址 主机通过WiFi连接,地址信息为: 虚拟机配置 选择编辑-->虚拟网络编辑器-->更改设置: 选择桥接模式,我这里用的是WiFi,如果是网口,根据自己情况选择。 虚拟机网络适配器选择桥接 阅读全文
posted @ 2022-04-17 14:34 zhengcixi 阅读(6896) 评论(0) 推荐(0) 编辑
摘要:1 简介 介绍使用C语言操作xml文件。 使用的开源库:mxml mxml源码路径:michaelrsweet/mxml: Tiny XML library. (github.com) mxml官网:Mini-XML (msweet.org) mxml官方API使用文档:Mini-XML 3.2 A 阅读全文
posted @ 2021-05-08 10:45 zhengcixi 阅读(1719) 评论(0) 推荐(0) 编辑
摘要:主要检查网络的配置是否正确,我测试时使用的是VMware虚拟机,需要保证centos中的网络配置和VMware中的一致。 (1)VMware的配置 网络适配器选择NAT模式 查看NAT设置,这里需要记住子网掩码和默认网关: (2)Centos的配置 路径:vim /etc/sysconfig/net 阅读全文
posted @ 2021-01-25 09:19 zhengcixi 阅读(1329) 评论(0) 推荐(0) 编辑
摘要:1 xxxx is not in the sudoers file. This incident will be reported. 解决方式:https://www.cnblogs.com/xym4869/p/8473646.html 当在终端执行sudo命令时,系统提示“xxxx is not 阅读全文
posted @ 2021-01-03 09:32 zhengcixi 阅读(181) 评论(0) 推荐(0) 编辑
摘要:对linux shell命令样式进行美化。 修改前的效果: 修改后的效果: 直接给出.bashrc脚本代码: 1 # ~/.bashrc: executed by bash(1) for non-login shells. 2 # see /usr/share/doc/bash/examples/s 阅读全文
posted @ 2020-10-27 09:11 zhengcixi 阅读(269) 评论(0) 推荐(0) 编辑
摘要:1 环境说明 Linux系统版本:Linux version 2.6.32-431.el6.x86_64 (mockbuild@x86-023.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) 阅读全文
posted @ 2020-08-30 12:37 zhengcixi 阅读(337) 评论(0) 推荐(0) 编辑
摘要:本文仅介绍一些自己常用的vim命令: Ctrl+f:屏幕向下移动一页,相当于Page Down按键; Ctrl+b:屏幕向下移动一页,相当于Page Up按键; 0或者功能键Hone:移动到这一行的最前面字符出; $或功能键End:移动到这一行的最后面字符处; /word:向光标之下寻找一个名称为w 阅读全文
posted @ 2020-07-16 21:34 zhengcixi 阅读(156) 评论(0) 推荐(0) 编辑

回到顶部
点击右上角即可分享
微信分享提示