when issuing a command like this:
ps -ef | grep inetd
I know that output will sometimes contain 2 lines: the match for inetd AND the grep command itself. Other times it will be just the results of the grep without the grep command.
IE Usually, you get this:
root 262290 90200 0 Oct 27 - 9:10 /usr/sbin/inetd
root 1310906 1609924 0 09:37:10 pts/4 0:00 grep inetd
but sometimes you will get this:
root 262290 90200 0 Oct 27 - 9:10 /usr/sbin/inetd
I dont quite understand why.
If anyone could explain or point me towards something that could, it would be appreciated.
ps -ef | grep inetd
I know that output will sometimes contain 2 lines: the match for inetd AND the grep command itself. Other times it will be just the results of the grep without the grep command.
IE Usually, you get this:
root 262290 90200 0 Oct 27 - 9:10 /usr/sbin/inetd
root 1310906 1609924 0 09:37:10 pts/4 0:00 grep inetd
but sometimes you will get this:
root 262290 90200 0 Oct 27 - 9:10 /usr/sbin/inetd
I dont quite understand why.
If anyone could explain or point me towards something that could, it would be appreciated.