随笔分类 -  [1.2].Linux应用

摘要:读写速率(dd) https://www.shellhacks.com/disk-speed-test-read-write-hdd-ssd-perfomance-linux/ eMMC健康情况(mmc_utils) https://superuser.com/questions/1181300/c 阅读全文
posted @ 2019-06-12 11:06 aaronGao 阅读(6985) 评论(0) 推荐(0) 编辑
摘要:转自:https://bbs.csdn.net/topics/390991551?page=1 netlink:https://blog.csdn.net/stone8761/article/details/72780863 https://www.cnblogs.com/x_wukong/p/59 阅读全文
posted @ 2019-06-09 23:35 aaronGao 阅读(947) 评论(0) 推荐(0) 编辑
摘要:转自:https://www.cnblogs.com/yangang92/p/5679641.html 主要如下方式: 1. 管道pipe2. 命名管道FIFO3. 内存映射MemoryMapping4. 消息队列MessageQueue5. 共享存储SharedMemory6. 信号量Semaph 阅读全文
posted @ 2019-06-09 23:33 aaronGao 阅读(290) 评论(0) 推荐(0) 编辑
摘要:Todo: 阅读全文
posted @ 2019-05-26 22:52 aaronGao 阅读(676) 评论(0) 推荐(0) 编辑
摘要:转自:https://www.cnblogs.com/EasonJim/p/7168216.html 在Debian8中systemd和sysVinit同时存在,NTP就是在/etc/init.d/ntp中启动 首先了解以下Ubuntu运行级别(init)对应工具的变化历史: 1、Ubuntu 6. 阅读全文
posted @ 2019-04-04 14:05 aaronGao 阅读(2877) 评论(0) 推荐(0) 编辑
摘要:https://qnaplus.com/implement-periodic-timer-linux/ 阅读全文
posted @ 2019-04-01 19:50 aaronGao 阅读(379) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/6970224/providing-passing-argument-to-signal-handler This is a really old question but I think I can show you a ni 阅读全文
posted @ 2019-04-01 19:42 aaronGao 阅读(1258) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/lu_embedded/article/details/53080496 阅读全文
posted @ 2019-04-01 17:10 aaronGao 阅读(657) 评论(0) 推荐(0) 编辑
摘要:Read 默认read是block模式,如果想设置非block默认,则open时候参数添加O_NONBLOCK read block模式下,并非等到Buffer满才返回,而是只要有data avaiable就会返回 阅读全文
posted @ 2019-03-29 13:26 aaronGao 阅读(280) 评论(0) 推荐(0) 编辑
摘要:假定目前只有root用户,则有如下两种方式可直接登录系统: 方式一: 1. passwd -d root, 但ssh必须要有用户名和密码,所以可以passwd root, 然后输入密码 2. 修改/lib/systemd/system/serial-getty\@.service#ExecStart 阅读全文
posted @ 2019-03-14 10:58 aaronGao 阅读(8860) 评论(0) 推荐(0) 编辑
摘要:转自:http://int32bit.me/2016/05/04/Linux%E5%B8%B8%E7%94%A8%E7%BD%91%E7%BB%9C%E5%B7%A5%E5%85%B7%E6%80%BB%E7%BB%93/ 目录 ping netstat lsof iftop nc tcpdump 阅读全文
posted @ 2019-01-14 14:00 aaronGao 阅读(1072) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/31646466/how-to-send-signal-from-kernel-to-user-space 阅读全文
posted @ 2019-01-08 11:27 aaronGao 阅读(516) 评论(0) 推荐(0) 编辑
摘要:http://www.linux-databook.info/?page_id=3748 systemctl disable ModemManager.service 失能ModemManger从而取消对4G模块的ttyUSB口复位的占用 阅读全文
posted @ 2018-12-25 11:20 aaronGao 阅读(884) 评论(0) 推荐(0) 编辑
摘要:转:https://blog.csdn.net/qq_42224274/article/details/80880914 将一个大文件分成若干个小文件方法例如将一个BLM.txt文件分成前缀为 BLM_ 的1000个小文件,后缀为系数形式,且后缀为4位数字形式先利用wc -l BLM.txt 读出 阅读全文
posted @ 2018-12-21 15:20 aaronGao 阅读(1712) 评论(0) 推荐(0) 编辑
摘要:turn on the DEBUG log in /etc/NetworkManager/NetworkManager.conf and restart NetworkManager. And, enable the debug logging in wpa supplicant. In /etc/ 阅读全文
posted @ 2018-12-10 10:57 aaronGao 阅读(1119) 评论(0) 推荐(0) 编辑
摘要:使用Ansible通过ssh批量读取和修改Client设备 1. 安装ansible工具 2. 添加需要访问的client信息 ansible配置文件如下 首先放开ansible.cfg中指定的hosts路径,然后编辑hosts如下: 3. 安装sshpass 4. 执行命令 5. 用python在 阅读全文
posted @ 2018-08-30 15:13 aaronGao 阅读(277) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/skyfsm/p/7079458.html 阅读全文
posted @ 2018-08-03 14:06 aaronGao 阅读(275) 评论(0) 推荐(0) 编辑
摘要:转自:http://www.cnblogs.com/darryo/p/selectpollepoll-on-serial-port.html In this article, I will use three asynchronous conferencing--select, poll and e 阅读全文
posted @ 2018-05-18 10:41 aaronGao 阅读(2394) 评论(0) 推荐(0) 编辑
摘要:转自:http://blog.51cto.com/yaocoder/888374 1. 流 首先我们来定义流的概念,一个流可以是文件,socket,pipe等等,可以进行I/O操作的内核对象,不管是文件,还是套接字,还是管道,我们都可以把他们看作流。 之后我们来讨论I/O的操作,通过read,我们可 阅读全文
posted @ 2018-05-15 10:29 aaronGao 阅读(377) 评论(0) 推荐(0) 编辑
摘要:转自:https://www.cnblogs.com/liuhouhou/p/5400540.html 大家对kill -9 肯定非常熟悉,在工作中也经常用到。特别是你去重启tomcat时。可是多半看来,我们对-9的理解只是表面而已。 很少有人(包括我)认真的去了解一下 kill -n 这个n到底是 阅读全文
posted @ 2018-04-25 09:39 aaronGao 阅读(5881) 评论(0) 推荐(0) 编辑