When i use : ps -o user,cmd My output is :
User CMD
0 in.telnetd
0 sh
0 processd
0 processe
0 in.telnetd
0 -sh
0 top
I want to get 2 row (which contains processd & processe) after i do grep command .
What i used :
1. ps -o user,cmd | grep "processd\|processe"
2. ps -o user,cmd | grep processd | grep processe
Am i using correct format to grep what i want or is it like i need to modify my query ?