Hide

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again.

Delete that bloated snippets file you've been using and share your personal repository with the world. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.


Get involved!

You can sign-in using OpenID credentials, or register a traditional username and password.

First-time OpenID users will be automatically assigned a username which can be changed after signing in.

UpGuard checks and validates configurations for every major OS, network device, and cloud provider.
Hide

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for:

Hide

News

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

Kill process by searching something from 'ps' command

Terminal - Kill process by searching something from 'ps' command
pkill <process name>
2010-06-18 20:38:32
User: Octave
0
Kill process by searching something from 'ps' command

Alternatives

There is 1 alternative - vote for the best!

Terminal - Alternatives
pkill -f <process name>
2010-06-19 02:36:31
User: eikenberry
Tags: kill ps killall
0

Using -f treats the process name as a pattern so you don't have to include the full path in the command. Thus 'pkill -f firefox' works, even with iceweasel.

ps h -o pid,command | grep 'TEXT' | sed 's/^ \+//' | cut -d ' ' -f 1 | xargs -n 1 kill
ps ux|grep <process name>|awk '{print $2}'|xargs -n 1 kill

Know a better way?

If you can do better, submit your command here.

What others think

With one of these colours, the actual http://www.rolexreplicasale.org.uk/ rolex replica customizer right now comes with an whole new world associated with choices to create Rolex along with other high-end wrist watches appear fascinating or even totally strange.What's the actual http://www.rolexreplicastoreuk.org.uk/ rolex replica sale layer procedure. Nicely, the actual films tend to be a kind of http://www.rolex-replica-uk.co.uk/ rolex replica bodily watery vapor depositing and therefore are blasted towards the area associated with wrist watches inside a unique step. They need to actually disassemble the actual http://www.watchesreplica2m.com/ replica watches sale as well as layer every element separately an additional component that provides http://www.rolexnicesale.co.uk/ rolex replica towards the price. Duramantan covered areas tend to be stated end up being regarding 2000 four thousand vickers HV within solidity, that is higher compared to metal. Therefore, sturdiness ought to be http://www.firstreplicarolex.co.uk/ rolex replica amazing, meaning the actual color-coating is actually hard in order to put on away. All these wrist watches through Rau-Tech can be bought however can also be a good example of exactly what they are able to perform. A few of these styles tend to be stunning plus some tend to be instead unsightly.

Comment by hoowei 20 weeks and 5 days ago

Your point of view

You must be signed in to comment.