Solaris commands for process management - pgrep

pgrep – get the PID's of processes by name i.e. Something like ps -efl|grep -v grep|grep process_name



# pgrep named 
586

Something like ps -efl|grep -v grep|grep process_name|awk '{print $1}'

# ps -e|grep -v grep|grep named|awk '{print $1}' 
586

No comments:

Post a Comment

Should I trust AI

 Should I trust AI? So far no, sorry.  I tested for the moment (May, 2025) most advanced model for programming and ask very simple question:...