摘要: 介绍 Linux下的IO统计工具如iostat, nmon等大多数是只能统计到per设备的读写情况, 如果你想知道每个进程是如何使用IO的就比较麻烦. iotop 是一个用来监视磁盘 I/O 使用状况的 top 类工具。iotop 具有与 top 相似的 UI,其中包括 PID、用户、I/O、进程等相关信息。 实例 直接运行就好 iotop 输出如下 复制代码 Total DISK READ: 6 阅读全文
posted @ 2019-10-18 17:19 igoodful 阅读(212) 评论(0) 推荐(0)
摘要: 需要安装,linux自身不自带该命令 阅读全文
posted @ 2019-10-18 17:18 igoodful 阅读(213) 评论(0) 推荐(0)
摘要: 适用于同机房或者能够通过防火墙。 注意防火墙限制端口。 # 压缩并传输文件 tar czf - 文件名或文件夹 | nc 接受端ip 接收端的端口 #接受并解压文件 nc -l 接收端开启的端口 | tar -xzf - -C /home/glc/tmp/ # 压缩并传输文件 tar czf - f 阅读全文
posted @ 2019-10-18 16:51 igoodful 阅读(681) 评论(1) 推荐(0)
摘要: 1、先看下文件总的行数: 如上: 可以看到,-a为4的话out后边的位数就是4位,以此类推,设置为3就是3位。 阅读全文
posted @ 2019-10-18 14:48 igoodful 阅读(1376) 评论(0) 推荐(0)
摘要: 1、使用into outfile '保存到操作系统的外部文件路径' mysql -uroot -p123456 -hhostname -P3306 select column_name_list from table_name where condition into outfile '/home/ 阅读全文
posted @ 2019-10-18 13:46 igoodful 阅读(2727) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-10-18 09:39 igoodful 阅读(549) 评论(0) 推荐(0)
摘要: 打开一个命令行窗口:ctrl+alt+t 在已有的命令行窗口上开启一个新的tab:ctrl+shift+t 阅读全文
posted @ 2019-10-18 09:19 igoodful 阅读(592) 评论(0) 推荐(0)