咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

linux下常用命令(grep、du、route、绑核等)

2017-02-08 22:55:53 9161次

常用命令:

grep -c -e "pattern" filename

-c:有多少行匹配了pattern

-e:?印出匹配了pattern的行

du -h --max-depth=1

打印出深度为1的文件大小

ping目标ip不通

route add -net targetIP gw localGW netmask 255.255.255.0 dev netPORT

2、绑核

lscpu

ps -o pid,psr,comm -p <pid>

taskset -cp <pid>

taskset -cp 4,5,6 <pid>

taskset -c 1,2,3 /sbin/ntp


首页
最新活动
个人中心