linux命令知多少(不断更新中......)

lsof

          http://www.cnblogs.com/rootq/articles/1401850.html

free

          http://www.cnblogs.com/chenrj/archive/2009/02/06/1385183.html

vi

          http://www.cnblogs.com/chenrj/archive/2008/08/28/1278893.html

2>&1

          文件描述符通常是:STDIN,STDOUT,STDERR,即:0,1,2
          把标准错误输出重定向>,通过后台&,放到标准输出所在的地方

wc

          计算字数:
          -c或--bytes或--chars   只显示Bytes数。
          -l或--lines   只显示列数。
          -w或--words   只显示字数。
rpm

          http://www.linuxsir.org/main/?q=node/50 

export & setenv

          设置环境变量
          export is used by sh and ksh shells.
          setenv is used by csh.
          The syntax also differs for both.
             Code:
                 export key=value
                 setenv key value

watch

          周期性执行某个命令,并全屏动态更新显示。参数:
          -d, --differences[=cumulative] 高亮显示变动
          -n, --interval= 周期(秒)
          如:
          1)查看网口流量:
                watch -n 1 "/sbin/ifconfig eth0 | grep bytes"
          2)查看网络TCP连接情况:
                watch -n 1 -d netstat -ant

vmstat

          http://www.cnblogs.com/bianxq/archive/2009/04/15/1436413.html

top

          http://blog.csdn.net/sanshiqiduer/archive/2007/12/13/1933625.aspx

posted @ 2009-03-04 16:15  希冀  阅读(247)  评论(0编辑  收藏  举报