I would like to know why ps aux | grep
includes the grep
command in the output but ps aux | grep "confi[g]"
does not.
$ ps aux | grep config
root 50 0.0 0.0 2548368 5760 ?? Ss 14Sep16 0:29.27 /usr/libexec/configd
emesa 20534 0.0 0.0 2434840 796 s002 S+ 4:41PM 0:00.00 grep config
vs.
$ ps aux | grep "confi[g]"
root 15776 0.0 0.0 2519824 940 ?? Ss Tue11AM 0:00.08 /System/Library/PrivateFrameworks/SystemAdministration.framework/XPCServices/writeconfig.xpc/Contents/MacOS/writeconfig
root 50 0.0 0.0 2547320 5740 ?? Ss 14Sep16 0:29.27 /usr/libexec/configd
grep config
matches the lineemesa ... grep config
inps aux
output, butgrep confi[g]
doesn't match the corresponding lineemesa ... grep confi[g]
inps aux
output. – Satō Katsura Sep 29 '16 at 14:56