commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
- this returns the Process ID for the signal firefox
kill -9 pid
- this kills the signal that had the given pid
cmd1 `cmd1` or cmd1 $(cmd1)
- here is the syntax for cmd2 to be executed first. Then the call to cmd2 is substituted with the output of cmd2, and cmd1 is executed.
There is 1 alternative - vote for the best!
Or even easier, if it's available:
I have no idea why you would want to rely on two unusual dependencies to do something that can be done a hundred ways from coreutils...
It's easy to understand and remember. Need ruby and rush to do this.
Kills process by name
If you can do better, submit your command here.
You must be signed in to comment.