watch监控命令输出内容。eg: watch 'ps -ef|grep php'
wc计算输出的行数或字符数等。eg: cat test.txt|wc -l
curl发http请求。eg: curl "http://baidu.com" -H "Host: baidu.com"eg: curl -I http://google.com 只获得头信息。eg: curl "http://google.com" -x 10.10.100.12 指定IP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| def traverse(filepath) | |
| if filepath.include? '.git' or filepath.include? '.DS_Store' or filepath.include? 'README' | |
| return | |
| end | |
| if File.directory?(filepath) | |
| # puts "Dirs:" + filepath |
:set list显示空格字符。:%s/xxx/ooo/g全文替换:helptags ~/.vim/doc/载入帮助文档:vnew垂直分割窗口:set nu显示行号:g/$pattern/d正则删除行
会话相关
:mksession! xxx.vim保存会话:source xxx.vim恢复会话
$ curl ifconfig.me
$ curl icanhazip.com
$ curl ident.me
$ curl ipecho.net/plain
$ curl whatismyip.akamai.com
$ curl myip.dnsomatic.comThe configure file is /etc/sudoers.
For all the group of admin:
%admin ALL=(ALL) NOPASSWD: NOPASSWD ALL
For the user of liuxd:
liuxd ALL=(ALL) NOPASSWD: ALL