Source Guru

Tag: shell

Nifty commands

by on Jan.03, 2008, under Geeky

So, helping someone with an issue earlier (amarok had crashed and they couldn’t kill it properly), I told them to issue the following command

ps x | awk '/amarok/ {print $1}' | xargs kill -9

Now, this is a command I use a lot to kill programs that are being evil (generally, I use it to kill evolution!)

But the comment came back “That’s nifty!”

So I’ve got to ask, what are your favourite “nifty” commands? and what do they do?

<edit> So far, within 5 mins of posting this, I’ve had 2 people ask why I don’t just use killall

mez@apathy:~$ ps x -ocommand | grep [e]vo
evolution
/usr/lib/evolution/evolution-data-server-1.12 <snip>
/usr/lib/evolution/2.12/evolution-exchange-storage <snip>
22 Comments :, , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!