class User
def full_name
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
sudo tee | |
Usage: tee [OPTION]... [FILE]... | |
Copy standard input to each FILE, and also to standard output. | |
-a, --append append to the given FILEs, do not overwrite | |
-i, --ignore-interrupts ignore interrupt signals | |
--help display this help and exit | |
比如: |
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
git rm --cached asd | |
git commit -m "the file asd is gone from the repository" |
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
1, 翻页: | |
ctrl+f, ctrl+b 向下翻页,向上翻页 | |
ctrl+d, ctrl+u 向下半翻页,向上半翻页 | |
2,移动: | |
$ 移动行尾 | |
0 移动行首 | |
w 移动下一个词 |
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
user |
scp是有Security的文件copy,基于ssh登录。操作起来比较方便,比如要把当前一个文件copy到远程另外一台主机上,可以如下命令。
scp / home / daisy / full . tar . gz root@ 172.19 . 2.75 : / home / root
然后会提示你输入另外那台172.19.2.75主机的root用户的登录密码,接着就开始copy了。
如果想反过来操作,把文件从远程主机copy到当前系统,也很简单。
1, 有些项目里包含另外一个子git项目(Submodule),那么按照常用的 git clone是不可能顺带把子git项目一起接下来的,所以可以考虑:
git clone --recursive [email protected]
git clone --recursive [email protected]:cloudfoundry/cf-release.git
详细使用文章:
摘自 multi_xml 适配器模式的实现,加载某个gem正常,则相应的使用某个解释器来解释XML。
# Get the current parser class.
def parser
return @parser if defined?(@parser)
self.parser = self.default_parser
@parser
end
http://blog.csdn.net/guaikai/article/details/6905781
1:首先安装apache:打开终端(ctrl+Alt+t),
输入命令:sudo apt-get install apache2即可安装,
安装完后,打开浏览器,在地址栏输入:localhost或者http://127.0.0.1
看到It works,表示安装成功!