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.com
The 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