linux下常用命令(grep、du、route、绑核等)
2017-03-23 20:13
351 查看
常用命令:
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
taskset -cp
taskset -cp 4,5,6
taskset -c 1,2,3 /sbin/ntp
3、查看linux版本
more /etc/issue
uname -a
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
taskset -cp
taskset -cp 4,5,6
taskset -c 1,2,3 /sbin/ntp
3、查看linux版本
more /etc/issue
uname -a
相关文章推荐
- linux常用的简单命令(三)tar、scp、df/du、ps、free、top、netstat、tcpdump、kill、reboot/halt/poweroff、shutdown
- 每天一条linux常用命令:du 命令常用方法
- linux 常用用命令-grep
- linux常用命令——grep
- linux中强大且常用命令:find、grep
- linux常用命令-grep
- linux常用命令学习之grep命令
- 常用Linux路由命令(route、ip、ifconfig等等)
- linux常用命令(2)-grep的用法
- Linux常用命令之grep
- linux常用的简单命令(一) ls、pwd、cd、cat/more、grep
- linux的常用的命令(ifconfig,route,ip)
- Linux--常用命令--grep
- [linux常用命令] 2、强大的搜索指令grep
- 【日常小记】linux中强大且常用命令:find、grep
- 【日常小记】linux中强大且常用命令:find、grep
- linux中强大且常用命令:find、grep
- linux/unix: grep与find常用命令
- Linux 常用命令——df, du, ln
- 【日常小记】linux中强大且常用命令:find、grep