sh CLI / bash快速参考

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh CLI / bash快速参考相关的知识,希望对你有一定的参考价值。

# last apache errors:
tail -f /var/log/apache2/error.log

# ssh with path:
ssh -o ServerAliveInterval=100 -t user@x.x.x.x "cd /var/www ; bash"

# grep example exclding several folders and only certain file types
grep --color --exclude-dir=*{.git,jquery,jqGrid,lib,web/js,core/util}* --include=*.{php,js,css,htm,html} -rPni 'RH-' .

以上是关于sh CLI / bash快速参考的主要内容,如果未能解决你的问题,请参考以下文章