运行locate libodbc命令时,提示“locate: warning: database ‘/var/cache/locate/locatedb’ is more than 8 days old (actual age is 22.3 days)”,运行sudo updatedb更新一下数据库即可。

sed的s命令通常使用/作为分隔符,其实并不是只有/可以做分隔符,s命令紧邻其后的任意一个字符都可以作为分隔符,因此如果pattern或repacement中有/,所以可以这样sed ‘s,bin/bash,,’ 也可以这样sed “s@bin/bash@@”

k8s就是指kubernetes,就像i18n是internationalization的缩写一样。

sierra的terminal里,vim输入中文乱码了,百思不得其解,苦苦搜索后,发现一个线索,terminal的preferences- Profile – advanced – Input – Escape non-ASCII input with Control-V不要勾选,果然此选项被勾选了,去掉勾选汉字输入正常了. but,这选项不是我开启的啊~~~

Console Vim uses whatever font the console/terminal is using. Changing the font in your terminal is done differently depending on your system and the terminal in use.

输入:h feature-list查看vim支持的特性,然后可以在脚本中通过if has(“feature-name”)来检测该特性.

cURL stands for “see URL” or “client for URLs”, the recursive version is “Curl URL Request Library”.

System Integrity Protection关闭打开的方法:启动mac时按住command+R,然后打开终端执行:csrutil disable | enable,然后reboot即可。