01 2015 档案
摘要:Linux 常用命令-- toptop 命令实时显示进程的状态。默认状态显示的是cpu密集型的进程,并且每5秒钟更新一次。你可以通过PID的数字大小,age (newest first), time (cumulative time),resident memory usage(常驻内存使用)以及进...
阅读全文
摘要:Linux常用命令 -- screen打开一个screen$screen 这时在机器上就会存在一个screen,这个screen会被以默认的方式命名:$screen -ls There is a screen on: 4087.pts-5.jackson-virtual-...
阅读全文
摘要:Vim 的常用操作 一. vim中的查找替换 修改当前行 :s/str1/str2/ 修改当前行的第一个str1为str2 :s/str1/str2/g 修改当前行的所有str1为str2 修改第n行到第m行 :n,ms/str1/str2/ 修改第n行到第m行的第一个str1为str2 :n,.s
阅读全文
摘要:Shell 处理字符串和{}操作1. 获取变量的长度获取字符串长度的方法大概有4种:(以hello world 为例)通过 wc -L $ echo "hello world" | wc -L 11通过expr length string$ expr length "hello world"1...
阅读全文

浙公网安备 33010602011771号