_ _ _             __                   
  ___ ___  _ __ ___  _ __ ___   __ _ _ __   __| | (_)_ __   ___ / _|_   _   ___ _ __  
 / __/ _ \| '_ ` _ \| '_ ` _ \ / _` | '_ \ / _` | | | '_ \ / _ \ |_| | | | / __| '_ \ 
| (_| (_) | | | | | | | | | | | (_| | | | | (_| | | | | | |  __/  _| |_| || (__| | | |
 \___\___/|_| |_| |_|_| |_| |_|\__,_|_| |_|\__,_|_|_|_| |_|\___|_|  \__,_(_)___|_| |_|


commandlinefu.cn>random 10
Loading commands...
ls -1 | while read file; do new_file=$(echo $file | sed s/\ /_/g); mv "$file" "$new_file"; done
文件名空格转换成下划线
sed -n '4{p;q}'
显示文件的第4行
find public_html/ -type d -exec chmod 775 {} \;
chmod所有的文件夹(排除文件)
ALT + d
删除下一个词
du -g | perl -ne 'print if (tr#/#/# == <maximum depth>)'
在IBM AIX上列出前max层文件夹大小
history -c
清空历史
cat | gcc -x c -o a.out - && ./a.out && rm a.out
输入 并执行 c程序
egrep 'Failed password for invalid' /var/log/secure | awk '{print $13}' | uniq
Grep登录日志,打印攻击者IP
od -An -N10 -x  /dev/random  | md5sum | sed -r 's/^(.{10}).*$/\1/; s/([0-9a-f]{2})/\1:/g; s/:$//;'
生成一个随机MAC地址
echo - | sed -e :a -e 's/^.\{1,50\}$/&-/;ta'
打印50个-
commandlinefu.cn>help
Commandlinefu.cn:
weibo: http://weibo.com/commandlinefu
github: http://github.com/tg123/commandlinefu.cn
Commands:
random [count=1]: 随机显示[count]条命令和介绍
grep <str>: 查找包含str的命令
help: 显示本帮助
commandlinefu.cn>random