News for hackers. Stuff that matters.
Re:What's the one Linux command you wish you knew years ago? by geekytenny on Sunday November 20, 2011 @03:23AM (#3257614)
This is useful for finding and killing a process.

ps -A | grep some text in program name

upon getting the pid

kill -9 pid

Re:What's the one Linux command you wish you knew years ago? by telemachos on Sunday November 20, 2011 @08:56AM (#3258102)
Instead of kill -9 (a nuke), you can often get results with just kill, kill -INT or kill -HUP. (The advantage is that the "weaker" signals allow your runaway program to do some cleanup, but kill -9 doesn't.)

There's a nice write-up and a function automating attempts to run increasingly strong signals on this site: http://web.archive.org/web/20080610070315/http://sial.org/ho...

(Thank god for the wayback machine. That site was full of good Unix tips and tutorials, but it's gone now.)

Re:What's the one Linux command you wish you knew years ago? by DaveChild on Monday November 21, 2011 @06:11AM (#3260728)
It's still there, just without a domain:

http://72.14.189.113/

Re:What's the one Linux command you wish you knew years ago? by telemachos on Tuesday November 22, 2011 @01:58PM (#3266828)
Thanks for letting me know. It's still probably easier to use the Wayback Machine since all of the site's internal links point to http://sial.org/ so browsing within the site is very painful. Still, I'm glad to see the content is all still online. I may just mirror the whole thing (there's tons of good reference material in there, especially for Perl, but also for Unix generally).
Re:What's the one Linux command you wish you knew years ago? by cpuddle on Sunday November 20, 2011 @04:46AM (#3257739)
Instead of the first, try "pgrep".
Re:What's the one Linux command you wish you knew years ago? by bnegreve on Sunday November 20, 2011 @03:33AM (#3257634)
also check

killall programname

Re:What's the one Linux command you wish you knew years ago? by owenmarshall on Sunday November 20, 2011 @11:27AM (#3258384)
Be careful with killall -- BSD and Linux killall does what you say, but SysV killall kills every program on the machine.

Most of us probably won't be executing killall on any HPUX or IRIX boxes, but it's still good to know the difference ;)

Re:What's the one Linux command you wish you knew years ago? by aw3c2 on Sunday November 20, 2011 @03:46AM (#3257658)
pkill

pidof