1.按内存从大到小排列进程:
ifconfig eth0 |grep "inet addr:" |awk '{print $2}'|cut -c 6-
4.统计每个单词出现的频率,并排序
shaw答案 :du -hs $(du -sk ./`ls -F |grep /` |sort -nr |awk '{print $NF}')
8.清空linux buffer cache
for i in *; do mv "$i" "$(echo $i|tr A-Z a-z)"; done
arp -nsh
12. 绑定已知机器的arp地址
>/补perl的可以不?
在当前目录及子目录下搜索所有后缀为 .php 的文件,并且将 字符串 baidu.com 替换成 linuxtone.org
sed -i "s/baidu.com/opendoc.com.cn/g" `grep baidu.com -rl ./`
vim 颜色
[ -x /usr/bin/id ] || return
fi
转载于:https://blog.51cto.com/chenhao6/1339780