文章浏览阅读383次。关闭swap分区【虚拟内存】并且永久关闭虚拟内存。swapoff -a && sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab关闭SELinuxsetenforce 0 && sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config_swapoff -a && sed -i '/ swap / s/......
文章浏览阅读163次。常用的shell命令(cut sed sort awk nl head …)cut (既可以编辑文本,也可以通过管道符号|进行操作)#准备文件vim test.txthello:mother:fucker:with:my:namehello:mother:fucker:with:my:namehello:mother:fucker:with:my:namehello:mother:fucker:with:my:na......