Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ugh, ps|grep is unnecessary. Just use pgrep! Or even better, pkill -9 ;-)


I started using Linux in 1997 and just today I've found out about pgrep and, on reddit, sudo !!

What a day!


Wow! Glad to be part of your journey in discovering linux.

I have been amazed by linux since my teenager years and it still has so much more to offer.

May we be blessed to be amazed for the eternities of our mortal lives.


The UNIX ecosystem (digisystem?) always has more to find.

Also, your reply is the kindest comment I've ever seen on HN.


pgrep is a good habit, it's on every major unix except perhaps aix.

Most other constructions can backfire in some unexpected way.


Next you'll be telling people to use SIGHUP instead of SIGKILL. Or to use the PID. Or to get VIM to substitute its own PID into the ex command using getpid().

* https://mywiki.wooledge.org/ProcessManagement#The_risk_of_pa...


Issue 26 (q.v.) is closed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: