摘要: 新建脚本,并命名为welcome.sh,将如下内容写入脚本中。#!/bin/bashchmod ugo+x welcome.shcd ~sudo apt-get updatesudo apt-get install cowsaysudo apt-get install fortunegit clon 阅读全文
posted @ 2020-06-11 18:38 kissrule 阅读(992) 评论(0) 推荐(0) 编辑
摘要: https://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git/tree/drivers/target?id=HEAD http://linux-iscsi.org/wiki/Target 阅读全文
posted @ 2020-06-11 15:56 kissrule 阅读(242) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bashwhile truedo date; lsof -n|awk '{print $2}'|sort|uniq -c |sort -nr|head -3 echo " "; echo " "; sleep 5done 每隔5秒输出一次系统描述符数量最多的前3个进程。 阅读全文
posted @ 2020-06-11 11:41 kissrule 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 当一个日志文件过大时,使用split进行分割会很有用。 split -b 20M source dst_prefix //把文件source切割为以dst_prefix为文件名前缀的小文件,每个小文件大小为20M。 阅读全文
posted @ 2020-06-11 10:07 kissrule 阅读(161) 评论(0) 推荐(0) 编辑
摘要: sudo pip install bashate ➜ tools git:(master) bashate -v install_modules_acceptance.sh Running bashate on install_modules_acceptance.shinstall_modules 阅读全文
posted @ 2020-06-11 09:58 kissrule 阅读(192) 评论(0) 推荐(0) 编辑