在Linux下怎样让top命令启动之后就按内存使用排序(或CPU使用排序)?
在Linux下怎样让top命令启动之后就按内存使用排序(或CPU使用排序)?
?
top 命令的参数中没有方法可以直接做到。
?
RCfile for "top with windows" # shameless braggin'Id:a, Mode_altscr=0, Mode_irixps=1, Delay_time=3.000, Curwin=0Def fieldscur=AEHIOQTWKNMbcdfgjplrsuvyzX winflags=62777, sortindx=13, maxtasks=0 summclr=1, msgsclr=1, headclr=3, taskclr=1Job fieldscur=ABcefgjlrstuvyzMKNHIWOPQDX winflags=62777, sortindx=0, maxtasks=0 summclr=6, msgsclr=6, headclr=7, taskclr=6Mem fieldscur=ANOPQRSTUVbcdefgjlmyzWHIKX winflags=62777, sortindx=13, maxtasks=0 summclr=5, msgsclr=5, headclr=4, taskclr=5Usr fieldscur=ABDECGfhijlopqrstuvyzMKNWX winflags=62777, sortindx=4, maxtasks=0 summclr=3, msgsclr=3, headclr=2, taskclr=3