01 2015 档案

摘要:匹配模式(pattern matching)可以用来快速的解析(deconstruct)输入的值 阅读全文
posted @ 2015-01-31 16:24 Henry JAO 阅读(104) 评论(0) 推荐(0) 编辑
摘要:想必在命令行模式用久了,都看厌了那个单调又丑的提示符,个人认为还占了些位,要是命令长的话还会断行.想改成cd ~/touch .bash_profilevim .bash_profileosx环境下操作的,关键语法 \[颜色\]prompt参数\[$reset\] 例如:\[$red\]\t\[$r... 阅读全文
posted @ 2015-01-30 23:53 Henry JAO 阅读(221) 评论(0) 推荐(0) 编辑
摘要:目标:system1透过ssh连接到system2电脑生成 private key (id_rsa) & public key (id_rsa.pub)id_rsa是system1要用的,例如windows端id_rsa.pub是你要连过去system2要用的, 此服务器必须安装openssh-se... 阅读全文
posted @ 2015-01-27 23:08 Henry JAO 阅读(246) 评论(0) 推荐(0) 编辑
摘要:File System为了让Linux运行起来,通常需要2个file systemboot file system (bootfs) 包含bootloader和kernel, 用户永远无法改变root file system (rootfs) 包含典型的Unix-like操作系统文件夹结构/dev,... 阅读全文
posted @ 2015-01-26 17:14 Henry JAO 阅读(249) 评论(0) 推荐(0) 编辑
摘要:tty: teletype, teletypewriterpseudo-tty 伪终端-t assigns a pseudo-tty or terminal inside our new container-imake an interactive connection--rm在Docker设计中,... 阅读全文
posted @ 2015-01-26 16:47 Henry JAO 阅读(2138) 评论(0) 推荐(0) 编辑
摘要:使用最小安装的centos 7时有很多命令工具尚未被安装,例如 ifconfig, 那怎知道此命令在那个package里面呢?# yum whatprovides ifconfigLoaded plugins: fastestmirrorLoading mirror speeds from cach... 阅读全文
posted @ 2015-01-24 21:59 Henry JAO 阅读(281) 评论(0) 推荐(0) 编辑
摘要:检查firewall是否运行# systemctl status firewalldfirewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.... 阅读全文
posted @ 2015-01-23 13:01 Henry JAO 阅读(456) 评论(0) 推荐(0) 编辑
摘要:对齐sbt引用时是件难事Tabularize来帮忙, 最难的其实是正则匹配vim 命令如下/comvj4:Tab /%\{1,2\}匹配%号1到2个,%{1,2} 注意花括号要用\作为escaping字符 阅读全文
posted @ 2015-01-02 00:34 Henry JAO 阅读(734) 评论(0) 推荐(0) 编辑