Alt + .
插入上一个命令的最后一个参数
$ wc -l
统计行数,常配合其它命令使用
$ du -sh dirname
查看某目录大小
$ scp frompath username@xxx.xxx.xxx:/path/on/server
| #!/bin/sh | |
| # | |
| # nginx - this script starts and stops the nginx daemin | |
| # | |
| # chkconfig: - 85 15 | |
| # description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
| # proxy and IMAP/POP3 proxy server | |
| # processname: nginx | |
| # config: /opt/nginx/conf/nginx.conf | |
| # pidfile: /var/run/nginx.pid |
Alt + .
插入上一个命令的最后一个参数
$ wc -l
统计行数,常配合其它命令使用
$ du -sh dirname
查看某目录大小
$ scp frompath username@xxx.xxx.xxx:/path/on/server
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <title>HTML template</title> | |
| <link href="http://blueprintcss.org/blueprint/screen.css" rel="stylesheet" type="text/css" /> | |
| <style type="text/css"> | |
| </style> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.js" type="text/javascript"></script> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js" type="text/javascript"></script> |
| class ToHaml | |
| def initialize(path) | |
| @path = path | |
| end | |
| def convert! | |
| Dir["#{@path}/**/*.erb"].each do |file| | |
| `html2haml -rx #{file} #{file.gsub(/\.erb$/, '.haml')}` | |
| `rm #{file}` | |
| end |
| xterm*metaSendsEscape: true | |
| XTerm*fontMenu*fontdefault*Label: Default | |
| XTerm*faceName: Bitstream Vera Sans Mono Roman | |
| XTerm*faceNameDoublesize: WenQuanYi Bitmap Song | |
| XTerm*faceSize: 10 | |
| XTerm*cjkWidth: true | |
| XTerm*mkWidth: true | |
| XTerm*jumpScroll: true | |
| XTerm*SaveLines: 10000 |
| [core] | |
| editor = vi | |
| [user] | |
| name = yourname | |
| email = youremail@gmail.com | |
| [alias] | |
| co = checkout | |
| st = status | |
| br = branch | |
| ci = commit |
| autorun = true | |
| autorunApps = | |
| { | |
| "google-chrome", | |
| "LC_CTYPE=zh_CN.utf8 emacs", | |
| "empathy", | |
| terminal, | |
| } | |
| if autorun then | |
| for app = 1, #autorunApps do |
| gnome-settings-daemon & | |
| gnome-volume-manager & | |
| gnome-power-manager & | |
| nm-applet & | |
| update-notifier & | |
| mongod --dbpath /var/lib/mongodb/ & | |
| exec awesome |