grep -c passwd #-c打印匹配的行数;grep -i passwd #过滤时忽略大小写;grep -n passwd #在每行前显示其行号;grep ‘^[^#]’ passwd #开头是#的行都不要;