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

Compressed tar archive

There are some cases when you want to create compressed tar archive but you do not have enough disk space to keep original files and tar arc...